Skip to main content
GET
/
storage
/
kv
/
{bucket}
/
search
Search KV entries
curl --request GET \
  --url https://api.quiva.ai/storage/kv/{bucket}/search \
  --header 'Authorization: Bearer <token>'
{
  "body": {
    "results": [
      {
        "key": "user123",
        "value": {
          "name": "John Doe",
          "age": 30
        }
      }
    ],
    "results_total": 1
  },
  "metadata": {
    "bucket": "my-bucket",
    "field": "name",
    "search": "John",
    "index_duration": "3ms",
    "index_hits": 1
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

bucket
string
required

Name of the bucket

Query Parameters

field
string
required

Field to search in

Search term

search_type
enum<string>

Type of search to perform

Available options:
exact,
fuzzy,
prefix,
range
min
number

Minimum value for range searches

max
number

Maximum value for range searches

limit
integer
default:10

Maximum number of results to return

Required range: 1 <= x <= 1000

Response

Search results

body
object
metadata
object