OriginChainDB
Database endpoints

Fetch records by filter

Read a page of vector records that match a metadata filter.

POST /v1/tenants/{tenant}/vector-indexes/{index}/records/fetch-by-filter

Read matching vector records in pagesPages use read-committed data rather than one frozen snapshot.
  1. Set the metadata filterSelect the namespace and desired record fields.
  2. Read the current pageInspect returned records keyed by ID.
  3. Follow the returned cursorContinue with the same namespace and filter.

Before you start

Use your database bearer token.

Connection setup

Choose exactly one nonempty filter. Results contain the current committed records.

Path parameters

FieldTypeRequired
tenantstringRequired
indexstringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Request body

application/json

Limits and accepted values
  • Exactly one of filter_expr or filter is required and it must not be empty.
  • limit 1-10,000, default 100.
  • Projection fields as for fetch.
  • consistency: read_committed (default);
  • snapshot is refused with 400.
FieldTypeRequired
consistencystringOptional
cursorstringOptional
filterobjectOptional
filter_exprobjectOptional
include_metadatabooleanOptional
include_sparsebooleanOptional
include_valuesbooleanOptional
limitintegerOptional
metadata_fieldsstring[]Optional
Fields in metadata_fields
FieldTypeRequired
metadata_fieldsstringOptional
FieldTypeRequired
namespacestringRequired
text_fieldsstring[]Optional
Fields in text_fields
FieldTypeRequired
text_fieldsstringOptional

Read the result

records contains the current page of matching records, keyed by ID. Follow a returned cursor to continue. This is a read-committed view, not a frozen snapshot across pages.

Response statuses

HTTP status reference
StatusWhat to do
200OK
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
404Check the resource ID and API route.
409Resolve the conflict before retrying.
413Split or reduce the request body.
415Send the required Content-Type.
422Correct the values or unsupported combination.
429Honor Retry-After when present; back off.
500Check the outcome before retrying a write.
501Check deployment support for this operation.
503Honor Retry-After when present; check write outcomes.
ยฉ 2026 Silicoyn Technologies Pvt Ltd