Vector HTTP API
Namespaced vector search with attribute filters, full-text ranking, multi-passage documents, and shard inspection. When authentication is configured, requests carry Basic credentials or a JWT bearer token. Namespace credentials grant read (queries, rows, metadata) or write (also creating, configuring, deleting and writing to the namespace) access to one namespace; global credentials cover every namespace and the shard listing. Namespaces must be declared, for example by a NamespaceAuthentication resource, and others answer 404. Listings show only the namespaces the caller can read. Generated from the OpenAPI 3.1 document (v0.1.0) shipped with the server.
Base URL
plural-vector cluster --config cluster.yaml serves every route on one port (--port, default 8080). Any server process owns the whole cluster, so run one per storage path. See the standalone guide for the configuration file.Requests
Bodies are JSON. Unknown fields are rejected rather than ignored, so typos surface as
400. Row ids are strings or non-negative integers of up to 256 bytes; integers are stored as their decimal string.Consistency
Writes return once applied in memory. Queries and row reads are strongly consistent by default: they first publish every acknowledged write, so they see their own writes. Pass
"consistency": {"level": "eventual"} to skip that step and read the last flushed snapshot. Data is durable on object storage within the flush interval (1 second by default).Errors
Errors carry a
status of error and a message:400Malformed JSON, unknown fields, type mismatches, invalid filters or rankings404Unknown namespace, row, or shard409Namespace exists, or the shard can't split500Storage or internal failure; safe to retry
Base URL
http://localhost:8080
Endpoints13
- GET
/api/v1/namespaces - DELETE
/api/v1/namespaces/… - GET
/api/v1/namespaces/… - PUT
/api/v1/namespaces/… - GET
/api/v1/namespaces/…/schema - PATCH
/api/v1/namespaces/…/schema - POST
/api/v1/namespaces/…/query - GET
/api/v1/namespaces/…/rows/{id} - POST
/api/v1/namespaces/…/write - GET
/api/v1/shards - GET
/-/healthy - GET
/-/ready - GET
/metrics
Error · 400
{
"status": "error",
"message": "Invalid input: invalid filter [\"year\",\"Between\",1]: unknown operator 'Between'"
}Resource
namespaces
A namespace is an independent collection of rows with its own dimensions, distance metric, schema, and index.List namespaces
GET
Returns every namespace's metadata, sorted by name./api/v1/namespacesResponses
200Every namespace, by nameapplication/json›NamespaceList
namespacesarray of Namespacerequired›Show child attributesHide child attributes
- Creation time, in Unix milliseconds.
created_at_msinteger · int64requiredMinimum 0 dimensionsinteger · int32requiredMinimum 0- How vector distance is measured. Fixed when the namespace is created.
distance_metricstringrequiredOne ofcosine_distanceeuclidean_squareddot_product - The model embedding the namespace, e.g.
embedding_modelstring | nullopenai:text-embedding-3-small, fixed when an attribute first embeds. - Hex key prefix of the namespace inside its shard.
idstringrequired namestringrequired- Every known attribute, declared or inferred.
schemamap of AttributeSchemarequired - Shard holding the namespace.
shardinteger · int32requiredMinimum 0
401Missing or insufficient credentials, when authentication is configuredapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
Request
curl http://localhost:8080/api/v1/namespacesResponse · 200
{
"namespaces": [
{
"name": "articles",
"id": "5c0e4f1d2a9b7e63",
"shard": 1,
"dimensions": 3,
"distance_metric": "cosine_distance",
"schema": {
"title": {
"type": "string",
"full_text_search": true
},
"body": {
"type": "string",
"full_text_search": true
},
"tags": {
"type": "[]string"
},
"year": {
"type": "int"
}
},
"created_at_ms": 1791464400000
}
]
}Delete a namespace
DELETE
Deletes the namespace and every row in it. The name can be reused right away. Blocks other requests on the cluster while it runs./api/v1/namespaces/{namespace}Path parameters
namespacestringrequired
Responses
200Namespace and all its rows deletedapplication/json›StatusOk
- Always
statusstringrequiredok.
401Missing or insufficient credentials, when authentication is configuredapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
404No such namespaceapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
Request
curl -X DELETE http://localhost:8080/api/v1/namespaces/articlesResponse · 200
{
"status": "ok"
}Get a namespace
GET
Returns the namespace's dimensions, metric, shard, and attribute schema, including attribute types inferred from writes./api/v1/namespaces/{namespace}Path parameters
namespacestringrequired
Responses
200Namespace metadataapplication/json›Namespace
- Creation time, in Unix milliseconds.
created_at_msinteger · int64requiredMinimum 0 dimensionsinteger · int32requiredMinimum 0- How vector distance is measured. Fixed when the namespace is created.
distance_metricstringrequiredOne ofcosine_distanceeuclidean_squareddot_product - The model embedding the namespace, e.g.
embedding_modelstring | nullopenai:text-embedding-3-small, fixed when an attribute first embeds. - Hex key prefix of the namespace inside its shard.
idstringrequired namestringrequired- Every known attribute, declared or inferred.
schemamap of AttributeSchemarequired - Shard holding the namespace.
shardinteger · int32requiredMinimum 0
401Missing or insufficient credentials, when authentication is configuredapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
404No such namespaceapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
Request
curl http://localhost:8080/api/v1/namespaces/articlesResponse · 200
{
"name": "articles",
"id": "5c0e4f1d2a9b7e63",
"shard": 1,
"dimensions": 3,
"distance_metric": "cosine_distance",
"schema": {
"title": {
"type": "string",
"full_text_search": true
},
"body": {
"type": "string",
"full_text_search": true
},
"tags": {
"type": "[]string"
},
"year": {
"type": "int"
}
},
"created_at_ms": 1791464400000
}Create a namespace
PUT
Creates an empty namespace on the active shard whose namespace-id range holds the hash of its name. Creating one explicitly is optional: the first write to a missing namespace creates it, with /api/v1/namespaces/{namespace}dimensions taken from its first vector.Path parameters
- 1–128 characters of
namespacestringrequiredA-Z a-z 0-9 - _ .
Request body
application/json- Vector length, 1 to 65535. Every row's vector must have it. Optional when an attribute embeds: the embedding model's length.
dimensionsinteger · int32 | nullMinimum 1 - How vector distance is measured. Fixed when the namespace is created.
distance_metricstring | nullOne ofcosine_distanceeuclidean_squareddot_product - Attributes to declare up front. Undeclared attributes are typed from the first value written.
schemamap of AttributeSchema | null
Responses
201Namespace created on the shard whose range holds its idapplication/json›Namespace
- Creation time, in Unix milliseconds.
created_at_msinteger · int64requiredMinimum 0 dimensionsinteger · int32requiredMinimum 0- How vector distance is measured. Fixed when the namespace is created.
distance_metricstringrequiredOne ofcosine_distanceeuclidean_squareddot_product - The model embedding the namespace, e.g.
embedding_modelstring | nullopenai:text-embedding-3-small, fixed when an attribute first embeds. - Hex key prefix of the namespace inside its shard.
idstringrequired namestringrequired- Every known attribute, declared or inferred.
schemamap of AttributeSchemarequired - Shard holding the namespace.
shardinteger · int32requiredMinimum 0
400Invalid name, dimensions, or schema, or an embed attribute without a matching embedding modelapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
401Missing or insufficient credentials, when authentication is configuredapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
409The namespace existsapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
502The embedding provider failed while learning its dimensionsapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
Request
curl -X PUT http://localhost:8080/api/v1/namespaces/articles \
-H 'Content-Type: application/json' \
--data-binary @- <<'EOF'
{
"dimensions": 3,
"distance_metric": "cosine_distance",
"schema": {
"title": {
"type": "string",
"full_text_search": true
},
"body": {
"type": "string",
"full_text_search": true
}
}
}
EOFResponse · 201
{
"name": "articles",
"id": "5c0e4f1d2a9b7e63",
"shard": 1,
"dimensions": 3,
"distance_metric": "cosine_distance",
"schema": {
"title": {
"type": "string",
"full_text_search": true
},
"body": {
"type": "string",
"full_text_search": true
}
},
"created_at_ms": 1791464400000
}Get the schema
GET
Returns the namespace's attribute schemas by name./api/v1/namespaces/{namespace}/schemaPath parameters
namespacestringrequired
Responses
200Attribute schemas by nameapplication/json401Missing or insufficient credentials, when authentication is configuredapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
404No such namespaceapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
Request
curl http://localhost:8080/api/v1/namespaces/articles/schemaResponse · 200
{
"title": {
"type": "string",
"full_text_search": true
},
"body": {
"type": "string",
"full_text_search": true
},
"tags": {
"type": "[]string"
},
"year": {
"type": "int"
}
}Update the schema
PATCH
Declares new attributes or turns /api/v1/namespaces/{namespace}/schemafull_text_search on or off. An attribute's type never changes once set; a mismatched type is rejected. Full-text indexing applies to rows written after the change, so rewrite existing rows to index them.Path parameters
namespacestringrequired
Request body
application/jsonResponses
200The updated schemaapplication/json400A type change, or full-text search on a non-stringapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
401Missing or insufficient credentials, when authentication is configuredapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
404No such namespaceapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
Request
curl -X PATCH http://localhost:8080/api/v1/namespaces/articles/schema \
-H 'Content-Type: application/json' \
--data-binary @- <<'EOF'
{
"tags": {
"type": "[]string"
},
"year": {
"type": "int"
}
}
EOFResponse · 200
{
"title": {
"type": "string",
"full_text_search": true
},
"body": {
"type": "string",
"full_text_search": true
},
"tags": {
"type": "[]string"
},
"year": {
"type": "int"
}
}Resource
rows
Rows are an id, a vector, and typed attributes. Documents are stored as one row per passage.Query
POST
Ranks the namespace's rows by vector distance, BM25 relevance, or an attribute, keeps those matching /api/v1/namespaces/{namespace}/queryfilters, and returns the top limit. Send queries instead to run several queries against one snapshot, optionally fused with reciprocal rank fusion. See Writing and querying for the full language.Path parameters
namespacestringrequired
Request body
application/json- Named aggregates over every row matching
aggregate_bymap of Aggregate | nullfilters, e.g.{"total": {"op": "Count"}}. Withoutrank_by, the response has no rows. consistencyConsistency | null›Show child attributesHide child attributes
levelstringrequiredOne ofstrongeventual
- Attributes to leave out.
exclude_attributesarray of string | null - A boolean filter over row attributes, tagged by
filtersFilter | nullop. On array attributes, operators match when any element does; negated operators also match rows without the attribute. See filters.›Show child attributesHide child attributes
- Every filter matches.
op: AndFilterAnd›Show child attributesHide child attributes
filtersarray of Filterrequired›Show child attributesHide child attributes
op: variantany
opstringrequiredOne ofAnd
- Any filter matches.
op: OrFilterOr›Show child attributesHide child attributes
filtersarray of Filterrequired›Show child attributesHide child attributes
op: variantany
opstringrequiredOne ofOr
- The filter doesn't match.
op: NotFilterNot›Show child attributesHide child attributes
- A boolean filter over row attributes, tagged by
filterFilterrequiredop. On array attributes, operators match when any element does; negated operators also match rows without the attribute. See filters.›Show child attributesHide child attributes
op: variantany
opstringrequiredOne ofNot
- The row has the attribute.
op: ExistsFilterExists›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofExists
- The row doesn't have the attribute.
op: NotExistsFilterNotExists›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotExists
- An attribute compared with one value.
op: EqFilterEq›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofEq- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- An attribute compared with one value.
op: NotEqFilterNotEq›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofNotEq- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- An attribute compared with one value.
op: LtFilterLt›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofLt- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- An attribute compared with one value.
op: LteFilterLte›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofLte- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- An attribute compared with one value.
op: GtFilterGt›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofGt- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- An attribute compared with one value.
op: GteFilterGte›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofGte- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- An array attribute has the value as an element.
op: ContainsFilterContains›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofContains- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- An attribute compared with one value.
op: NotContainsFilterNotContains›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofNotContains- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- Equals one of the values.
op: InFilterIn›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofInvaluesarray of string | integer · int64 | number · double | booleanrequired
- An attribute compared with a set of values.
op: NotInFilterNotIn›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotInvaluesarray of string | integer · int64 | number · double | booleanrequired
- An array attribute has any of the values as an element.
op: ContainsAnyFilterContainsAny›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofContainsAnyvaluesarray of string | integer · int64 | number · double | booleanrequired
- An attribute compared with a set of values.
op: NotContainsAnyFilterNotContainsAny›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotContainsAnyvaluesarray of string | integer · int64 | number · double | booleanrequired
- Matches the pattern, case-sensitively.
op: GlobFilterGlob›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofGlobpatternstringrequired
- A
op: NotGlobFilterNotGlobstringattribute matched against a glob pattern:*,?, classes like[a-z]and[!0-9], and\to escape.›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotGlobpatternstringrequired
- Matches the pattern, ignoring case.
op: IGlobFilterIGlob›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofIGlobpatternstringrequired
- A
op: NotIGlobFilterNotIGlobstringattribute matched against a glob pattern:*,?, classes like[a-z]and[!0-9], and\to escape.›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotIGlobpatternstringrequired
include_attributesanytrue(every attribute exceptvector, the default),false(onlyidand the score), or a list of names; listvectorto return it.- A row count (default
limitany10), or{"total": n, "per": {..}}to cap rows per group, e.g. passages per document. - ANN centroids to probe. Default
nprobeinteger · int64 | nulllimitclamped to 10–100; filtered queries that come up short are retried with more.Minimum 0 - Multi-query: run these queries against one snapshot. Only
queriesarray of SubQuery | nullconsistencyandrrfmay accompany it.›Show child attributesHide child attributes
- Named aggregates over every row matching
aggregate_bymap of Aggregate | nullfilters, e.g.{"total": {"op": "Count"}}. Withoutrank_by, the response has no rows. consistencyConsistency | null›Show child attributesHide child attributes
levelstringrequiredOne ofstrongeventual
- Attributes to leave out.
exclude_attributesarray of string | null - A boolean filter over row attributes, tagged by
filtersFilter | nullop. On array attributes, operators match when any element does; negated operators also match rows without the attribute. See filters.›Show child attributesHide child attributes
- Every filter matches.
op: AndFilterAnd›Show child attributesHide child attributes
filtersarray of anyrequiredopstringrequiredOne ofAnd
- Any filter matches.
op: OrFilterOr›Show child attributesHide child attributes
filtersarray of anyrequiredopstringrequiredOne ofOr
- The filter doesn't match.
op: NotFilterNot›Show child attributesHide child attributes
filteranyrequiredopstringrequiredOne ofNot
- The row has the attribute.
op: ExistsFilterExists›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofExists
- The row doesn't have the attribute.
op: NotExistsFilterNotExists›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotExists
- An attribute compared with one value.
op: EqFilterEq›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofEqvalueanyrequired
- An attribute compared with one value.
op: NotEqFilterNotEq›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofNotEqvalueanyrequired
- An attribute compared with one value.
op: LtFilterLt›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofLtvalueanyrequired
- An attribute compared with one value.
op: LteFilterLte›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofLtevalueanyrequired
- An attribute compared with one value.
op: GtFilterGt›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofGtvalueanyrequired
- An attribute compared with one value.
op: GteFilterGte›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofGtevalueanyrequired
- An array attribute has the value as an element.
op: ContainsFilterContains›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofContainsvalueanyrequired
- An attribute compared with one value.
op: NotContainsFilterNotContains›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofNotContainsvalueanyrequired
- Equals one of the values.
op: InFilterIn›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofInvaluesarray of anyrequired
- An attribute compared with a set of values.
op: NotInFilterNotIn›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotInvaluesarray of anyrequired
- An array attribute has any of the values as an element.
op: ContainsAnyFilterContainsAny›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofContainsAnyvaluesarray of anyrequired
- An attribute compared with a set of values.
op: NotContainsAnyFilterNotContainsAny›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotContainsAnyvaluesarray of anyrequired
- Matches the pattern, case-sensitively.
op: GlobFilterGlob›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofGlobpatternstringrequired
- A
op: NotGlobFilterNotGlobstringattribute matched against a glob pattern:*,?, classes like[a-z]and[!0-9], and\to escape.›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotGlobpatternstringrequired
- Matches the pattern, ignoring case.
op: IGlobFilterIGlob›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofIGlobpatternstringrequired
- A
op: NotIGlobFilterNotIGlobstringattribute matched against a glob pattern:*,?, classes like[a-z]and[!0-9], and\to escape.›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotIGlobpatternstringrequired
include_attributesanytrue(every attribute exceptvector, the default),false(onlyidand the score), or a list of names; listvectorto return it.- A row count (default
limitany10), or{"total": n, "per": {..}}to cap rows per group, e.g. passages per document. - ANN centroids to probe. Default
nprobeinteger · int64 | nulllimitclamped to 10–100; filtered queries that come up short are retried with more.Minimum 0 - How to order rows, tagged by
rank_byRankBy | nullop. See ranking.›Show child attributesHide child attributes
- Approximate nearest neighbours, closest first. Adds
op: ANNRankByANN$dist.›Show child attributesHide child attributes
opstringrequiredOne ofANN- Text to embed into the query vector, in a namespace with an
textstring | nullembedattribute. - The query vector, with the namespace's dimensions. Exactly one of
vectorarray of number · float | nullvectorandtext.
- Exact nearest neighbours of the rows matching the filter. Adds
op: kNNRankByKNN$dist.›Show child attributesHide child attributes
opstringrequiredOne ofkNN- Text to embed into the query vector, in a namespace with an
textstring | nullembedattribute. - The query vector, with the namespace's dimensions. Exactly one of
vectorarray of number · float | nullvectorandtext.
- BM25 relevance, best first. Adds
op: BM25RankByBM25$score.›Show child attributesHide child attributes
- A
attributestringrequiredfull_text_searchattribute. opstringrequiredOne ofBM25querystringrequired
- Attribute order.
op: OrderRankByOrder›Show child attributesHide child attributes
- An attribute, or
attributestringrequiredid(ascending only). Rows without the attribute come last. - Default
directionany | nullasc. opstringrequiredOne ofOrder
- Alias of a numeric
top_kinteger · int64 | nulllimit.Minimum 0
- How to order rows, tagged by
rank_byRankBy | nullop. See ranking.›Show child attributesHide child attributes
- Approximate nearest neighbours, closest first. Adds
op: ANNRankByANN$dist.›Show child attributesHide child attributes
opstringrequiredOne ofANN- Text to embed into the query vector, in a namespace with an
textstring | nullembedattribute. - The query vector, with the namespace's dimensions. Exactly one of
vectorarray of number · float | nullvectorandtext.
- Exact nearest neighbours of the rows matching the filter. Adds
op: kNNRankByKNN$dist.›Show child attributesHide child attributes
opstringrequiredOne ofkNN- Text to embed into the query vector, in a namespace with an
textstring | nullembedattribute. - The query vector, with the namespace's dimensions. Exactly one of
vectorarray of number · float | nullvectorandtext.
- BM25 relevance, best first. Adds
op: BM25RankByBM25$score.›Show child attributesHide child attributes
- A
attributestringrequiredfull_text_searchattribute. opstringrequiredOne ofBM25querystringrequired
- Attribute order.
op: OrderRankByOrder›Show child attributesHide child attributes
- An attribute, or
attributestringrequiredid(ascending only). Rows without the attribute come last. directionstring | nullOne ofascdescopstringrequiredOne ofOrder
rrfRrf | null›Show child attributesHide child attributes
- Rank offset: a row at rank
knumber · double | nullr(from 1) adds1 / (k + r)to its fused score. Default60. - Fused rows to return. Defaults to the largest sub-query limit.
limitinteger · int64 | nullMinimum 0
- Alias of a numeric
top_kinteger · int64 | nulllimit.Minimum 0
Responses
200Matching rows and aggregatesapplication/json›QueryResult
- Aggregate values by name.
aggregationsobject | null performancePerformance | null›Show child attributesHide child attributes
query_execution_msnumber · doublerequired
- Multi-query without
resultsarray of SubQueryResult | nullrrf: one result per query, in order.›Show child attributesHide child attributes
aggregationsobject | nullperformancePerformancerequired›Show child attributesHide child attributes
query_execution_msnumber · doublerequired
rowsarray of object | null
- Matching rows, best first:
rowsarray of object | nullid, then$dist(vector ranking) or$score(BM25 and RRF), then the selected attributes. Absent for aggregation-only queries.
400Invalid ranking, filter, or limit, or a strong query to a sharded clusterapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
401Missing or insufficient credentials, when authentication is configuredapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
404No such namespaceapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
502The embedding provider failedapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
503The replica serving the namespace is unavailable, for example while its shard splits for a new writer; retryapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
Request
curl -X POST http://localhost:8080/api/v1/namespaces/articles/query \
-H 'Content-Type: application/json' \
--data-binary @- <<'EOF'
{
"rank_by": {
"op": "ANN",
"vector": [
0.1,
0.9,
0
]
},
"filters": {
"op": "And",
"filters": [
{
"op": "Contains",
"attribute": "tags",
"value": "security"
},
{
"op": "Gte",
"attribute": "year",
"value": 2025
}
]
},
"limit": {
"total": 5,
"per": {
"attributes": [
"$doc_id"
],
"limit": 1
}
},
"include_attributes": [
"title",
"$doc_id"
]
}
EOFResponse · 200
{
"rows": [
{
"id": "kb-42#0",
"$dist": 0.0091,
"title": "Rotating database credentials",
"$doc_id": "kb-42"
},
{
"id": "kb-17#2",
"$dist": 0.1874,
"title": "Auditing secret access",
"$doc_id": "kb-17"
}
],
"performance": {
"query_execution_ms": 2.4
}
}Get a row
GET
Returns one row with all its attributes, including /api/v1/namespaces/{namespace}/rows/{id}vector. Reads are strongly consistent.Path parameters
namespacestringrequired- Row id; passage rows are
idstringrequired{document}#{index}
Responses
200The rowapplication/json›Row
- Further attributes, by name.
attributesobjectrequired idstringrequiredvectorarray of number · floatrequired
401Missing or insufficient credentials, when authentication is configuredapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
404No such namespace or rowapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
Request
curl http://localhost:8080/api/v1/namespaces/articles/rows/kb-42%230Response · 200
{
"id": "kb-42#0",
"vector": [
0.12,
0.88,
0.05
],
"title": "Rotating database credentials",
"body": "Credentials rotate every 30 days through the secrets operator.",
"tags": [
"security",
"ops"
],
"year": 2026,
"$doc_id": "kb-42",
"$passage": 0
}Write rows and documents
POST
Upserts, patches, and deletes rows, and upserts and deletes multi-passage documents, in one request. The whole request is validated first, so a bad row or filter changes nothing. The response returns once the write is applied; row reads and strongly consistent queries (standalone only) see it immediately, and it reaches object storage, and eventually consistent queries, within the flush interval./api/v1/namespaces/{namespace}/writePath parameters
namespacestringrequired
Request body
application/json- A boolean filter over row attributes, tagged by
delete_by_filterFilter | nullop. On array attributes, operators match when any element does; negated operators also match rows without the attribute. See filters.›Show child attributesHide child attributes
- Every filter matches.
op: AndFilterAnd›Show child attributesHide child attributes
filtersarray of Filterrequired›Show child attributesHide child attributes
op: variantany
opstringrequiredOne ofAnd
- Any filter matches.
op: OrFilterOr›Show child attributesHide child attributes
filtersarray of Filterrequired›Show child attributesHide child attributes
op: variantany
opstringrequiredOne ofOr
- The filter doesn't match.
op: NotFilterNot›Show child attributesHide child attributes
- A boolean filter over row attributes, tagged by
filterFilterrequiredop. On array attributes, operators match when any element does; negated operators also match rows without the attribute. See filters.›Show child attributesHide child attributes
op: variantany
opstringrequiredOne ofNot
- The row has the attribute.
op: ExistsFilterExists›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofExists
- The row doesn't have the attribute.
op: NotExistsFilterNotExists›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotExists
- An attribute compared with one value.
op: EqFilterEq›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofEq- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- An attribute compared with one value.
op: NotEqFilterNotEq›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofNotEq- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- An attribute compared with one value.
op: LtFilterLt›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofLt- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- An attribute compared with one value.
op: LteFilterLte›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofLte- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- An attribute compared with one value.
op: GtFilterGt›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofGt- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- An attribute compared with one value.
op: GteFilterGte›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofGte- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- An array attribute has the value as an element.
op: ContainsFilterContains›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofContains- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- An attribute compared with one value.
op: NotContainsFilterNotContains›Show child attributesHide child attributes
- Any attribute but
attributestringrequiredidandvector. opstringrequiredOne ofNotContains- A filter operand: one value of the attribute's type, or of its element type for array attributes.
valuestring | integer · int64 | number · double | booleanrequired
- Equals one of the values.
op: InFilterIn›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofInvaluesarray of string | integer · int64 | number · double | booleanrequired
- An attribute compared with a set of values.
op: NotInFilterNotIn›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotInvaluesarray of string | integer · int64 | number · double | booleanrequired
- An array attribute has any of the values as an element.
op: ContainsAnyFilterContainsAny›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofContainsAnyvaluesarray of string | integer · int64 | number · double | booleanrequired
- An attribute compared with a set of values.
op: NotContainsAnyFilterNotContainsAny›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotContainsAnyvaluesarray of string | integer · int64 | number · double | booleanrequired
- Matches the pattern, case-sensitively.
op: GlobFilterGlob›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofGlobpatternstringrequired
- A
op: NotGlobFilterNotGlobstringattribute matched against a glob pattern:*,?, classes like[a-z]and[!0-9], and\to escape.›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotGlobpatternstringrequired
- Matches the pattern, ignoring case.
op: IGlobFilterIGlob›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofIGlobpatternstringrequired
- A
op: NotIGlobFilterNotIGlobstringattribute matched against a glob pattern:*,?, classes like[a-z]and[!0-9], and\to escape.›Show child attributesHide child attributes
attributestringrequiredopstringrequiredOne ofNotIGlobpatternstringrequired
- Ids of documents whose passages to delete.
delete_documentsarray of any | null - Ids of rows to delete.
deletesarray of any | null - How vector distance is measured. Fixed when the namespace is created.
distance_metricstring | nullOne ofcosine_distanceeuclidean_squareddot_product - Partial rows merged into existing rows by
patch_rowsarray of object | nullid.nullremoves an attribute; rows that don't exist are skipped. - Schema entries applied before the write, as in
schemamap of AttributeSchema | nullPATCH .../schema. - Documents to insert or replace. A document's previous passages are replaced, including any beyond the new passage count.
upsert_documentsarray of Document | null›Show child attributesHide child attributes
- Attributes copied onto every passage row.
attributesobject - Document id: a string or non-negative integer. Passage
idanyrequirediis stored as row"{id}#{i}". - Passages in order, each
passagesarray of object{"vector": [..], attribute: value, ..}. Passage attributes override document attributes. Without passages, in a namespace with anembedattribute, the server splits that attribute's text into passages sized for the embedding model.
- Rows to insert or replace:
upsert_rowsarray of object | null{"id": .., "vector": [..], attribute: value, ..}.nullattributes are omitted.
Responses
200Applied; visible to row reads and strong queries at once, and to eventual queries after the next flushapplication/json›WriteResult
documents_deletedinteger · int64requiredMinimum 0documents_upsertedinteger · int64requiredMinimum 0- Rows removed by
rows_deletedinteger · int64requireddeletes,delete_by_filter,delete_documents, and stale passages of upserted documents.Minimum 0 rows_patchedinteger · int64requiredMinimum 0rows_upsertedinteger · int64requiredMinimum 0
400Invalid rows, types, or filter; nothing appliedapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
401Missing or insufficient credentials, when authentication is configuredapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
404No such namespace and no vector to create it fromapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
502The embedding provider failedapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
503The replica serving the namespace is unavailable, for example while its shard splits for a new writer; retryapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
Request
curl -X POST http://localhost:8080/api/v1/namespaces/articles/write \
-H 'Content-Type: application/json' \
--data-binary @- <<'EOF'
{
"upsert_documents": [
{
"id": "kb-42",
"attributes": {
"title": "Rotating database credentials",
"tags": [
"security",
"ops"
],
"year": 2026
},
"passages": [
{
"vector": [
0.12,
0.88,
0.05
],
"body": "Credentials rotate every 30 days through the secrets operator."
},
{
"vector": [
0.31,
0.72,
0.11
],
"body": "Rotation restarts pods that mount the secret."
}
]
}
],
"upsert_rows": [
{
"id": "faq-7",
"vector": [
0.9,
0.1,
0.2
],
"title": "Where are backups stored?",
"tags": [
"faq"
],
"year": 2025
}
],
"patch_rows": [
{
"id": "faq-3",
"tags": [
"faq",
"archived"
]
}
],
"deletes": [
"faq-1"
]
}
EOFResponse · 200
{
"rows_upserted": 3,
"rows_patched": 1,
"rows_deleted": 1,
"documents_upserted": 1,
"documents_deleted": 0
}Resource
shards
Each shard holds a contiguous range of namespace ids, so each namespace lives on exactly one shard, and each writer owns one shard. Adding a writer splits a shard for it.List shards
GET
Returns every shard with its state, namespace-id range, owning writer, lineage, and the namespaces it holds. Retired shards stay listed after a split, and /api/v1/shardssplit_to names the writer an active shard is being split for.Responses
200Every shard, active and retiredapplication/json›ShardList
shardsarray of Shardrequired›Show child attributesHide child attributes
- Shards this one was split into.
childrenarray of integer · int32 | null - Creation time, in Unix milliseconds.
created_at_msinteger · int64requiredMinimum 0 idinteger · int32requiredMinimum 0- Namespaces the shard holds.
namespacesarray of stringrequired - Writer replica that owns the shard: each writer owns one active shard.
ownerstring | null - Shard this one was split from.
parentinteger · int32 | nullMinimum 0 - Namespace ids
rangeNamespaceRangerequired[start, end), as 16 hex digits.›Show child attributesHide child attributes
- Absent when the range extends to the end of the id space.
endstring | null startstringrequired
- A writer that joined without a shard: the owner is splitting this shard and hands it the upper half.
split_tostring | null statestringrequiredOne ofactiveretired
401Missing or insufficient credentials, when authentication is configuredapplication/json›ErrorEnvelope
messagestringrequired- Always
statusstringrequirederror.
Request
curl http://localhost:8080/api/v1/shardsResponse · 200
{
"shards": [
{
"id": 0,
"state": "retired",
"range": {
"start": "0000000000000000"
},
"children": [
1,
2
],
"created_at_ms": 1788872400000,
"namespaces": []
},
{
"id": 1,
"state": "active",
"range": {
"start": "0000000000000000",
"end": "7f3a000000000000"
},
"owner": "vector-writer-0",
"parent": 0,
"created_at_ms": 1791464400000,
"namespaces": [
"articles",
"billing"
]
},
{
"id": 2,
"state": "active",
"range": {
"start": "7f3a000000000000"
},
"owner": "vector-writer-1",
"parent": 0,
"created_at_ms": 1791464400000,
"namespaces": [
"support"
]
}
]
}Resource
operations
Probes and self-monitoring.Request
curl http://localhost:8080/-/healthyResponse · 200
OKReadiness
GET
Returns /-/ready200 once the server is listening. Shards a replica serves open in the background, and requests for a shard that isn't open yet get 503.Responses
200Server is ready
Request
curl http://localhost:8080/-/readyResponse · 200
OKServer metrics
GET
Prometheus exposition of request, write, query, and SlateDB metrics./metricsResponses
200Prometheus exposition of server metricstext/plain
Request
curl http://localhost:8080/metricsResponse · 200
# TYPE vector_upserts_total counter
vector_upserts_total 18342