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 rankings
  • 404Unknown namespace, row, or shard
  • 409Namespace exists, or the shard can't split
  • 500Storage or internal failure; safe to retry
Resource

namespaces

A namespace is an independent collection of rows with its own dimensions, distance metric, schema, and index.

List namespaces

GET/api/v1/namespaces
Returns every namespace's metadata, sorted by name.

Responses

  • 200Every namespace, by nameapplication/json
    ›NamespaceList
    • namespacesarray of Namespacerequired
      ›Show child attributes
      • created_at_msinteger · int64required
        Creation time, in Unix milliseconds.
        Minimum 0
      • dimensionsinteger · int32required
        Minimum 0
      • distance_metricstringrequired
        How vector distance is measured. Fixed when the namespace is created.
        One ofcosine_distanceeuclidean_squareddot_product
      • embedding_modelstring | null
        The model embedding the namespace, e.g. openai:text-embedding-3-small, fixed when an attribute first embeds.
      • idstringrequired
        Hex key prefix of the namespace inside its shard.
      • namestringrequired
      • schemamap of AttributeSchemarequired
        Every known attribute, declared or inferred.
      • shardinteger · int32required
        Shard holding the namespace.
        Minimum 0
  • 401Missing or insufficient credentials, when authentication is configuredapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
Request
curl http://localhost:8080/api/v1/namespaces
Response · 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/api/v1/namespaces/{namespace}
Deletes the namespace and every row in it. The name can be reused right away. Blocks other requests on the cluster while it runs.

Path parameters

  • namespacestringrequired

Responses

  • 200Namespace and all its rows deletedapplication/json
    ›StatusOk
    • statusstringrequired
      Always ok.
  • 401Missing or insufficient credentials, when authentication is configuredapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 404No such namespaceapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
Request
curl -X DELETE http://localhost:8080/api/v1/namespaces/articles
Response · 200
{
  "status": "ok"
}

Get a namespace

GET/api/v1/namespaces/{namespace}
Returns the namespace's dimensions, metric, shard, and attribute schema, including attribute types inferred from writes.

Path parameters

  • namespacestringrequired

Responses

  • 200Namespace metadataapplication/json
    ›Namespace
    • created_at_msinteger · int64required
      Creation time, in Unix milliseconds.
      Minimum 0
    • dimensionsinteger · int32required
      Minimum 0
    • distance_metricstringrequired
      How vector distance is measured. Fixed when the namespace is created.
      One ofcosine_distanceeuclidean_squareddot_product
    • embedding_modelstring | null
      The model embedding the namespace, e.g. openai:text-embedding-3-small, fixed when an attribute first embeds.
    • idstringrequired
      Hex key prefix of the namespace inside its shard.
    • namestringrequired
    • schemamap of AttributeSchemarequired
      Every known attribute, declared or inferred.
    • shardinteger · int32required
      Shard holding the namespace.
      Minimum 0
  • 401Missing or insufficient credentials, when authentication is configuredapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 404No such namespaceapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
Request
curl http://localhost:8080/api/v1/namespaces/articles
Response · 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/api/v1/namespaces/{namespace}
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 dimensions taken from its first vector.

Path parameters

  • namespacestringrequired
    1–128 characters of A-Z a-z 0-9 - _ .

Request body

application/json
  • dimensionsinteger · int32 | null
    Vector length, 1 to 65535. Every row's vector must have it. Optional when an attribute embeds: the embedding model's length.
    Minimum 1
  • distance_metricstring | null
    How vector distance is measured. Fixed when the namespace is created.
    One ofcosine_distanceeuclidean_squareddot_product
  • schemamap of AttributeSchema | null
    Attributes to declare up front. Undeclared attributes are typed from the first value written.

Responses

  • 201Namespace created on the shard whose range holds its idapplication/json
    ›Namespace
    • created_at_msinteger · int64required
      Creation time, in Unix milliseconds.
      Minimum 0
    • dimensionsinteger · int32required
      Minimum 0
    • distance_metricstringrequired
      How vector distance is measured. Fixed when the namespace is created.
      One ofcosine_distanceeuclidean_squareddot_product
    • embedding_modelstring | null
      The model embedding the namespace, e.g. openai:text-embedding-3-small, fixed when an attribute first embeds.
    • idstringrequired
      Hex key prefix of the namespace inside its shard.
    • namestringrequired
    • schemamap of AttributeSchemarequired
      Every known attribute, declared or inferred.
    • shardinteger · int32required
      Shard holding the namespace.
      Minimum 0
  • 400Invalid name, dimensions, or schema, or an embed attribute without a matching embedding modelapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 401Missing or insufficient credentials, when authentication is configuredapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 409The namespace existsapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 502The embedding provider failed while learning its dimensionsapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
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
    }
  }
}
EOF
Response · 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/api/v1/namespaces/{namespace}/schema
Returns the namespace's attribute schemas by name.

Path parameters

  • namespacestringrequired

Responses

  • 200Attribute schemas by nameapplication/json
  • 401Missing or insufficient credentials, when authentication is configuredapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 404No such namespaceapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
Request
curl http://localhost:8080/api/v1/namespaces/articles/schema
Response · 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/api/v1/namespaces/{namespace}/schema
Declares new attributes or turns full_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/json

Responses

  • 200The updated schemaapplication/json
  • 400A type change, or full-text search on a non-stringapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 401Missing or insufficient credentials, when authentication is configuredapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 404No such namespaceapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
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"
  }
}
EOF
Response · 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/api/v1/namespaces/{namespace}/query
Ranks the namespace's rows by vector distance, BM25 relevance, or an attribute, keeps those matching filters, 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
  • aggregate_bymap of Aggregate | null
    Named aggregates over every row matching filters, e.g. {"total": {"op": "Count"}}. Without rank_by, the response has no rows.
  • consistencyConsistency | null
    ›Show child attributes
    • levelstringrequired
      One ofstrongeventual
  • exclude_attributesarray of string | null
    Attributes to leave out.
  • filtersFilter | null
    A boolean filter over row attributes, tagged by op. On array attributes, operators match when any element does; negated operators also match rows without the attribute. See filters.
    ›Show child attributes
    • op: AndFilterAnd
      Every filter matches.
      ›Show child attributes
      • filtersarray of Filterrequired
        ›Show child attributes
        • op: variantany
      • opstringrequired
        One ofAnd
    • op: OrFilterOr
      Any filter matches.
      ›Show child attributes
      • filtersarray of Filterrequired
        ›Show child attributes
        • op: variantany
      • opstringrequired
        One ofOr
    • op: NotFilterNot
      The filter doesn't match.
      ›Show child attributes
      • filterFilterrequired
        A boolean filter over row attributes, tagged by op. On array attributes, operators match when any element does; negated operators also match rows without the attribute. See filters.
        ›Show child attributes
        • op: variantany
      • opstringrequired
        One ofNot
    • op: ExistsFilterExists
      The row has the attribute.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofExists
    • op: NotExistsFilterNotExists
      The row doesn't have the attribute.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofNotExists
    • op: EqFilterEq
      An attribute compared with one value.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofEq
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: NotEqFilterNotEq
      An attribute compared with one value.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofNotEq
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: LtFilterLt
      An attribute compared with one value.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofLt
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: LteFilterLte
      An attribute compared with one value.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofLte
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: GtFilterGt
      An attribute compared with one value.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofGt
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: GteFilterGte
      An attribute compared with one value.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofGte
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: ContainsFilterContains
      An array attribute has the value as an element.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofContains
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: NotContainsFilterNotContains
      An attribute compared with one value.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofNotContains
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: InFilterIn
      Equals one of the values.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofIn
      • valuesarray of string | integer · int64 | number · double | booleanrequired
    • op: NotInFilterNotIn
      An attribute compared with a set of values.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofNotIn
      • valuesarray of string | integer · int64 | number · double | booleanrequired
    • op: ContainsAnyFilterContainsAny
      An array attribute has any of the values as an element.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofContainsAny
      • valuesarray of string | integer · int64 | number · double | booleanrequired
    • op: NotContainsAnyFilterNotContainsAny
      An attribute compared with a set of values.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofNotContainsAny
      • valuesarray of string | integer · int64 | number · double | booleanrequired
    • op: GlobFilterGlob
      Matches the pattern, case-sensitively.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofGlob
      • patternstringrequired
    • op: NotGlobFilterNotGlob
      A string attribute matched against a glob pattern: *, ?, classes like [a-z] and [!0-9], and \ to escape.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofNotGlob
      • patternstringrequired
    • op: IGlobFilterIGlob
      Matches the pattern, ignoring case.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofIGlob
      • patternstringrequired
    • op: NotIGlobFilterNotIGlob
      A string attribute matched against a glob pattern: *, ?, classes like [a-z] and [!0-9], and \ to escape.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofNotIGlob
      • patternstringrequired
  • include_attributesany
    true (every attribute except vector, the default), false (only id and the score), or a list of names; list vector to return it.
  • limitany
    A row count (default 10), or {"total": n, "per": {..}} to cap rows per group, e.g. passages per document.
  • nprobeinteger · int64 | null
    ANN centroids to probe. Default limit clamped to 10–100; filtered queries that come up short are retried with more.
    Minimum 0
  • queriesarray of SubQuery | null
    Multi-query: run these queries against one snapshot. Only consistency and rrf may accompany it.
    ›Show child attributes
    • aggregate_bymap of Aggregate | null
      Named aggregates over every row matching filters, e.g. {"total": {"op": "Count"}}. Without rank_by, the response has no rows.
    • consistencyConsistency | null
      ›Show child attributes
      • levelstringrequired
        One ofstrongeventual
    • exclude_attributesarray of string | null
      Attributes to leave out.
    • filtersFilter | null
      A boolean filter over row attributes, tagged by op. On array attributes, operators match when any element does; negated operators also match rows without the attribute. See filters.
      ›Show child attributes
      • op: AndFilterAnd
        Every filter matches.
        ›Show child attributes
        • filtersarray of anyrequired
        • opstringrequired
          One ofAnd
      • op: OrFilterOr
        Any filter matches.
        ›Show child attributes
        • filtersarray of anyrequired
        • opstringrequired
          One ofOr
      • op: NotFilterNot
        The filter doesn't match.
        ›Show child attributes
        • filteranyrequired
        • opstringrequired
          One ofNot
      • op: ExistsFilterExists
        The row has the attribute.
        ›Show child attributes
        • attributestringrequired
        • opstringrequired
          One ofExists
      • op: NotExistsFilterNotExists
        The row doesn't have the attribute.
        ›Show child attributes
        • attributestringrequired
        • opstringrequired
          One ofNotExists
      • op: EqFilterEq
        An attribute compared with one value.
        ›Show child attributes
        • attributestringrequired
          Any attribute but id and vector.
        • opstringrequired
          One ofEq
        • valueanyrequired
      • op: NotEqFilterNotEq
        An attribute compared with one value.
        ›Show child attributes
        • attributestringrequired
          Any attribute but id and vector.
        • opstringrequired
          One ofNotEq
        • valueanyrequired
      • op: LtFilterLt
        An attribute compared with one value.
        ›Show child attributes
        • attributestringrequired
          Any attribute but id and vector.
        • opstringrequired
          One ofLt
        • valueanyrequired
      • op: LteFilterLte
        An attribute compared with one value.
        ›Show child attributes
        • attributestringrequired
          Any attribute but id and vector.
        • opstringrequired
          One ofLte
        • valueanyrequired
      • op: GtFilterGt
        An attribute compared with one value.
        ›Show child attributes
        • attributestringrequired
          Any attribute but id and vector.
        • opstringrequired
          One ofGt
        • valueanyrequired
      • op: GteFilterGte
        An attribute compared with one value.
        ›Show child attributes
        • attributestringrequired
          Any attribute but id and vector.
        • opstringrequired
          One ofGte
        • valueanyrequired
      • op: ContainsFilterContains
        An array attribute has the value as an element.
        ›Show child attributes
        • attributestringrequired
          Any attribute but id and vector.
        • opstringrequired
          One ofContains
        • valueanyrequired
      • op: NotContainsFilterNotContains
        An attribute compared with one value.
        ›Show child attributes
        • attributestringrequired
          Any attribute but id and vector.
        • opstringrequired
          One ofNotContains
        • valueanyrequired
      • op: InFilterIn
        Equals one of the values.
        ›Show child attributes
        • attributestringrequired
        • opstringrequired
          One ofIn
        • valuesarray of anyrequired
      • op: NotInFilterNotIn
        An attribute compared with a set of values.
        ›Show child attributes
        • attributestringrequired
        • opstringrequired
          One ofNotIn
        • valuesarray of anyrequired
      • op: ContainsAnyFilterContainsAny
        An array attribute has any of the values as an element.
        ›Show child attributes
        • attributestringrequired
        • opstringrequired
          One ofContainsAny
        • valuesarray of anyrequired
      • op: NotContainsAnyFilterNotContainsAny
        An attribute compared with a set of values.
        ›Show child attributes
        • attributestringrequired
        • opstringrequired
          One ofNotContainsAny
        • valuesarray of anyrequired
      • op: GlobFilterGlob
        Matches the pattern, case-sensitively.
        ›Show child attributes
        • attributestringrequired
        • opstringrequired
          One ofGlob
        • patternstringrequired
      • op: NotGlobFilterNotGlob
        A string attribute matched against a glob pattern: *, ?, classes like [a-z] and [!0-9], and \ to escape.
        ›Show child attributes
        • attributestringrequired
        • opstringrequired
          One ofNotGlob
        • patternstringrequired
      • op: IGlobFilterIGlob
        Matches the pattern, ignoring case.
        ›Show child attributes
        • attributestringrequired
        • opstringrequired
          One ofIGlob
        • patternstringrequired
      • op: NotIGlobFilterNotIGlob
        A string attribute matched against a glob pattern: *, ?, classes like [a-z] and [!0-9], and \ to escape.
        ›Show child attributes
        • attributestringrequired
        • opstringrequired
          One ofNotIGlob
        • patternstringrequired
    • include_attributesany
      true (every attribute except vector, the default), false (only id and the score), or a list of names; list vector to return it.
    • limitany
      A row count (default 10), or {"total": n, "per": {..}} to cap rows per group, e.g. passages per document.
    • nprobeinteger · int64 | null
      ANN centroids to probe. Default limit clamped to 10–100; filtered queries that come up short are retried with more.
      Minimum 0
    • rank_byRankBy | null
      How to order rows, tagged by op. See ranking.
      ›Show child attributes
      • op: ANNRankByANN
        Approximate nearest neighbours, closest first. Adds $dist.
        ›Show child attributes
        • opstringrequired
          One ofANN
        • textstring | null
          Text to embed into the query vector, in a namespace with an embed attribute.
        • vectorarray of number · float | null
          The query vector, with the namespace's dimensions. Exactly one of vector and text.
      • op: kNNRankByKNN
        Exact nearest neighbours of the rows matching the filter. Adds $dist.
        ›Show child attributes
        • opstringrequired
          One ofkNN
        • textstring | null
          Text to embed into the query vector, in a namespace with an embed attribute.
        • vectorarray of number · float | null
          The query vector, with the namespace's dimensions. Exactly one of vector and text.
      • op: BM25RankByBM25
        BM25 relevance, best first. Adds $score.
        ›Show child attributes
        • attributestringrequired
          A full_text_search attribute.
        • opstringrequired
          One ofBM25
        • querystringrequired
      • op: OrderRankByOrder
        Attribute order.
        ›Show child attributes
        • attributestringrequired
          An attribute, or id (ascending only). Rows without the attribute come last.
        • directionany | null
          Default asc.
        • opstringrequired
          One ofOrder
    • top_kinteger · int64 | null
      Alias of a numeric limit.
      Minimum 0
  • rank_byRankBy | null
    How to order rows, tagged by op. See ranking.
    ›Show child attributes
    • op: ANNRankByANN
      Approximate nearest neighbours, closest first. Adds $dist.
      ›Show child attributes
      • opstringrequired
        One ofANN
      • textstring | null
        Text to embed into the query vector, in a namespace with an embed attribute.
      • vectorarray of number · float | null
        The query vector, with the namespace's dimensions. Exactly one of vector and text.
    • op: kNNRankByKNN
      Exact nearest neighbours of the rows matching the filter. Adds $dist.
      ›Show child attributes
      • opstringrequired
        One ofkNN
      • textstring | null
        Text to embed into the query vector, in a namespace with an embed attribute.
      • vectorarray of number · float | null
        The query vector, with the namespace's dimensions. Exactly one of vector and text.
    • op: BM25RankByBM25
      BM25 relevance, best first. Adds $score.
      ›Show child attributes
      • attributestringrequired
        A full_text_search attribute.
      • opstringrequired
        One ofBM25
      • querystringrequired
    • op: OrderRankByOrder
      Attribute order.
      ›Show child attributes
      • attributestringrequired
        An attribute, or id (ascending only). Rows without the attribute come last.
      • directionstring | null
        One ofascdesc
      • opstringrequired
        One ofOrder
  • rrfRrf | null
    ›Show child attributes
    • knumber · double | null
      Rank offset: a row at rank r (from 1) adds 1 / (k + r) to its fused score. Default 60.
    • limitinteger · int64 | null
      Fused rows to return. Defaults to the largest sub-query limit.
      Minimum 0
  • top_kinteger · int64 | null
    Alias of a numeric limit.
    Minimum 0

Responses

  • 200Matching rows and aggregatesapplication/json
    ›QueryResult
    • aggregationsobject | null
      Aggregate values by name.
    • performancePerformance | null
      ›Show child attributes
      • query_execution_msnumber · doublerequired
    • resultsarray of SubQueryResult | null
      Multi-query without rrf: one result per query, in order.
      ›Show child attributes
      • aggregationsobject | null
      • performancePerformancerequired
        ›Show child attributes
        • query_execution_msnumber · doublerequired
      • rowsarray of object | null
    • rowsarray of object | null
      Matching rows, best first: id, 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
    • statusstringrequired
      Always error.
  • 401Missing or insufficient credentials, when authentication is configuredapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 404No such namespaceapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 502The embedding provider failedapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 503The replica serving the namespace is unavailable, for example while its shard splits for a new writer; retryapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
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"
  ]
}
EOF
Response · 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/api/v1/namespaces/{namespace}/rows/{id}
Returns one row with all its attributes, including vector. Reads are strongly consistent.

Path parameters

  • namespacestringrequired
  • idstringrequired
    Row id; passage rows are {document}#{index}

Responses

  • 200The rowapplication/json
    ›Row
    • attributesobjectrequired
      Further attributes, by name.
    • idstringrequired
    • vectorarray of number · floatrequired
  • 401Missing or insufficient credentials, when authentication is configuredapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 404No such namespace or rowapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
Request
curl http://localhost:8080/api/v1/namespaces/articles/rows/kb-42%230
Response · 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/api/v1/namespaces/{namespace}/write
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.

Path parameters

  • namespacestringrequired

Request body

application/json
  • delete_by_filterFilter | null
    A boolean filter over row attributes, tagged by op. On array attributes, operators match when any element does; negated operators also match rows without the attribute. See filters.
    ›Show child attributes
    • op: AndFilterAnd
      Every filter matches.
      ›Show child attributes
      • filtersarray of Filterrequired
        ›Show child attributes
        • op: variantany
      • opstringrequired
        One ofAnd
    • op: OrFilterOr
      Any filter matches.
      ›Show child attributes
      • filtersarray of Filterrequired
        ›Show child attributes
        • op: variantany
      • opstringrequired
        One ofOr
    • op: NotFilterNot
      The filter doesn't match.
      ›Show child attributes
      • filterFilterrequired
        A boolean filter over row attributes, tagged by op. On array attributes, operators match when any element does; negated operators also match rows without the attribute. See filters.
        ›Show child attributes
        • op: variantany
      • opstringrequired
        One ofNot
    • op: ExistsFilterExists
      The row has the attribute.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofExists
    • op: NotExistsFilterNotExists
      The row doesn't have the attribute.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofNotExists
    • op: EqFilterEq
      An attribute compared with one value.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofEq
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: NotEqFilterNotEq
      An attribute compared with one value.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofNotEq
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: LtFilterLt
      An attribute compared with one value.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofLt
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: LteFilterLte
      An attribute compared with one value.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofLte
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: GtFilterGt
      An attribute compared with one value.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofGt
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: GteFilterGte
      An attribute compared with one value.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofGte
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: ContainsFilterContains
      An array attribute has the value as an element.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofContains
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: NotContainsFilterNotContains
      An attribute compared with one value.
      ›Show child attributes
      • attributestringrequired
        Any attribute but id and vector.
      • opstringrequired
        One ofNotContains
      • valuestring | integer · int64 | number · double | booleanrequired
        A filter operand: one value of the attribute's type, or of its element type for array attributes.
    • op: InFilterIn
      Equals one of the values.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofIn
      • valuesarray of string | integer · int64 | number · double | booleanrequired
    • op: NotInFilterNotIn
      An attribute compared with a set of values.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofNotIn
      • valuesarray of string | integer · int64 | number · double | booleanrequired
    • op: ContainsAnyFilterContainsAny
      An array attribute has any of the values as an element.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofContainsAny
      • valuesarray of string | integer · int64 | number · double | booleanrequired
    • op: NotContainsAnyFilterNotContainsAny
      An attribute compared with a set of values.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofNotContainsAny
      • valuesarray of string | integer · int64 | number · double | booleanrequired
    • op: GlobFilterGlob
      Matches the pattern, case-sensitively.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofGlob
      • patternstringrequired
    • op: NotGlobFilterNotGlob
      A string attribute matched against a glob pattern: *, ?, classes like [a-z] and [!0-9], and \ to escape.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofNotGlob
      • patternstringrequired
    • op: IGlobFilterIGlob
      Matches the pattern, ignoring case.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofIGlob
      • patternstringrequired
    • op: NotIGlobFilterNotIGlob
      A string attribute matched against a glob pattern: *, ?, classes like [a-z] and [!0-9], and \ to escape.
      ›Show child attributes
      • attributestringrequired
      • opstringrequired
        One ofNotIGlob
      • patternstringrequired
  • delete_documentsarray of any | null
    Ids of documents whose passages to delete.
  • deletesarray of any | null
    Ids of rows to delete.
  • distance_metricstring | null
    How vector distance is measured. Fixed when the namespace is created.
    One ofcosine_distanceeuclidean_squareddot_product
  • patch_rowsarray of object | null
    Partial rows merged into existing rows by id. null removes an attribute; rows that don't exist are skipped.
  • schemamap of AttributeSchema | null
    Schema entries applied before the write, as in PATCH .../schema.
  • upsert_documentsarray of Document | null
    Documents to insert or replace. A document's previous passages are replaced, including any beyond the new passage count.
    ›Show child attributes
    • attributesobject
      Attributes copied onto every passage row.
    • idanyrequired
      Document id: a string or non-negative integer. Passage i is stored as row "{id}#{i}".
    • passagesarray of object
      Passages in order, each {"vector": [..], attribute: value, ..}. Passage attributes override document attributes. Without passages, in a namespace with an embed attribute, the server splits that attribute's text into passages sized for the embedding model.
  • upsert_rowsarray of object | null
    Rows to insert or replace: {"id": .., "vector": [..], attribute: value, ..}. null attributes 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 · int64required
      Minimum 0
    • documents_upsertedinteger · int64required
      Minimum 0
    • rows_deletedinteger · int64required
      Rows removed by deletes, delete_by_filter, delete_documents, and stale passages of upserted documents.
      Minimum 0
    • rows_patchedinteger · int64required
      Minimum 0
    • rows_upsertedinteger · int64required
      Minimum 0
  • 400Invalid rows, types, or filter; nothing appliedapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 401Missing or insufficient credentials, when authentication is configuredapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 404No such namespace and no vector to create it fromapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 502The embedding provider failedapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
  • 503The replica serving the namespace is unavailable, for example while its shard splits for a new writer; retryapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
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"
  ]
}
EOF
Response · 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/api/v1/shards
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 split_to names the writer an active shard is being split for.

Responses

  • 200Every shard, active and retiredapplication/json
    ›ShardList
    • shardsarray of Shardrequired
      ›Show child attributes
      • childrenarray of integer · int32 | null
        Shards this one was split into.
      • created_at_msinteger · int64required
        Creation time, in Unix milliseconds.
        Minimum 0
      • idinteger · int32required
        Minimum 0
      • namespacesarray of stringrequired
        Namespaces the shard holds.
      • ownerstring | null
        Writer replica that owns the shard: each writer owns one active shard.
      • parentinteger · int32 | null
        Shard this one was split from.
        Minimum 0
      • rangeNamespaceRangerequired
        Namespace ids [start, end), as 16 hex digits.
        ›Show child attributes
        • endstring | null
          Absent when the range extends to the end of the id space.
        • startstringrequired
      • split_tostring | null
        A writer that joined without a shard: the owner is splitting this shard and hands it the upper half.
      • statestringrequired
        One ofactiveretired
  • 401Missing or insufficient credentials, when authentication is configuredapplication/json
    ›ErrorEnvelope
    • messagestringrequired
    • statusstringrequired
      Always error.
Request
curl http://localhost:8080/api/v1/shards
Response · 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.

Liveness

GET/-/healthy
Returns 200 while the process is running.

Responses

  • 200Process is running
Request
curl http://localhost:8080/-/healthy
Response · 200
OK

Readiness

GET/-/ready
Returns 200 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/-/ready
Response · 200
OK

Server metrics

GET/metrics
Prometheus exposition of request, write, query, and SlateDB metrics.

Responses

  • 200Prometheus exposition of server metricstext/plain
Request
curl http://localhost:8080/metrics
Response · 200
# TYPE vector_upserts_total counter
vector_upserts_total 18342