Version 0.9.4

REST API

Generated from the 0.9.4 OpenAPI specification.

Endpoints

GET /health Health check

Returns ready or degraded, plus the running version.

StatusDescriptionType
200Successful Responseobject
GET /health/live Liveness check

Always succeeds while the process is running.

StatusDescriptionType
200Successful Responseobject
GET /health/metrics Metrics snapshot

Counters, version, and hardware info as JSON. Requires the admin key when auth.mode=static.

StatusDescriptionType
200Successful Responseobject
GET /health/ready Readiness check

Returns 503 until storage and embeddings are usable. Does not expose local filesystem paths.

StatusDescriptionType
200Successful Responseobject
GET /metrics Prometheus metrics

The same counters in Prometheus exposition format. Requires the admin key when auth.mode=static.

StatusDescriptionType
200Successful Responseobject
GET /v1/admin/archive Download an archive

Streams the whole dataset as a zip; requires the admin key.

StatusDescriptionType
200Successful Response
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
500Internal Server ErrorErrorResponse
PUT /v1/admin/archive Restore an archive

Overwrites current data with the uploaded zip; requires the admin key.

Request body (multipart/form-data): Body_restore_archive_v1_admin_archive_put

StatusDescriptionType
200Successful ResponseRestoreArchiveResponse
400Bad RequestErrorResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
422Validation ErrorHTTPValidationError
500Internal Server ErrorErrorResponse
POST /v1/admin/collections/{tenant}/{name}/move Rename a collection

Changes the slug, and therefore the URL; requires the admin key.

ParameterInRequiredTypeDescription
tenantpathyesstring
namepathyesstring

Request body (application/json): MoveCollectionBody

StatusDescriptionType
200Successful ResponseMoveCollectionResponse
400Bad RequestErrorResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
409ConflictErrorResponse
422Validation ErrorHTTPValidationError
500Internal Server ErrorErrorResponse
GET /v1/admin/embedders List embedder instances

Lists configured embedder instances and the resolved default; requires the admin key.

StatusDescriptionType
200Successful ResponseEmbedderInventoryResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
500Internal Server ErrorErrorResponse
DELETE /v1/admin/metrics Reset metrics

Zeroes request counters; requires the admin key.

StatusDescriptionType
200Successful ResponseResetMetricsResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
GET /v1/admin/queries/{query_id} Get any logged search

Finds a search by id without knowing its tenant; requires the admin key.

ParameterInRequiredTypeDescription
query_idpathyesstring
StatusDescriptionType
200Successful ResponseGetQueryLogResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
422Validation ErrorHTTPValidationError
500Internal Server ErrorErrorResponse
POST /v1/admin/queries/{query_id}/replay Replay any logged search

Re-runs a search found by id in any tenant; requires the admin key.

ParameterInRequiredTypeDescription
query_idpathyesstring
StatusDescriptionType
200Successful ResponseQueryReplayResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
503Service UnavailableErrorResponse
GET /v1/admin/tenants List tenants

Names every tenant on the instance; requires the admin key.

StatusDescriptionType
200Successful ResponseListTenantsResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
500Internal Server ErrorErrorResponse
GET /v1/collections/{tenant} List collections

One entry per collection, with display name and embedding model.

ParameterInRequiredTypeDescription
tenantpathyesstring
StatusDescriptionType
200Successful ResponseListCollectionsResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
GET /v1/collections/{tenant}/{collection}/chunks/{rid} Get a chunk

Returns the chunk's provenance and metadata, not its text.

ParameterInRequiredTypeDescription
tenantpathyesstring
collectionpathyesstring
ridpathyesstring
StatusDescriptionType
200Successful ResponseGetChunkResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
GET /v1/collections/{tenant}/{collection}/chunks/{rid}/content Get chunk content

Returns the chunk's raw text as the response body.

ParameterInRequiredTypeDescription
tenantpathyesstring
collectionpathyesstring
ridpathyesstring
StatusDescriptionType
200Successful Response
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
GET /v1/collections/{tenant}/{collection}/documents List documents

One entry per document, with version and chunk count.

ParameterInRequiredTypeDescription
tenantpathyesstring
collectionpathyesstring
StatusDescriptionType
200Successful ResponseListDocumentsResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
POST /v1/collections/{tenant}/{collection}/documents Ingest a document

Chunks, embeds, and indexes a multipart file or JSON raw-text document; reusing a docid replaces it.

ParameterInRequiredTypeDescription
tenantpathyesstring
collectionpathyesstring
csv_has_headerquerynostring (optional)
csv_meta_colsquerynostring (optional)
csv_include_colsquerynostring (optional)

Request body (multipart/form-data): Body_ingest_document_v1_collections__tenant___collection__documents_post

StatusDescriptionType
201Successful ResponseIngestDocumentResponse
400Bad RequestErrorResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
413Request Entity Too LargeErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
503Service UnavailableErrorResponse
DELETE /v1/collections/{tenant}/{collection}/documents/{docid} Delete a document

Removes the document and all chunks derived from it.

ParameterInRequiredTypeDescription
tenantpathyesstring
collectionpathyesstring
docidpathyesstring
StatusDescriptionType
200Successful ResponseDeleteDocumentResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
GET /v1/collections/{tenant}/{collection}/documents/{docid} Get a document

Includes stored metadata, version, and its chunk ids.

ParameterInRequiredTypeDescription
tenantpathyesstring
collectionpathyesstring
docidpathyesstring
StatusDescriptionType
200Successful ResponseGetDocumentResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
GET /v1/collections/{tenant}/{collection}/documents/{docid}/chunks List document chunks

Chunks in document order, with provenance metadata.

ParameterInRequiredTypeDescription
tenantpathyesstring
collectionpathyesstring
docidpathyesstring
StatusDescriptionType
200Successful ResponseListChunksResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
POST /v1/collections/{tenant}/{collection}/documents:batch Ingest documents in a batch

Indexes several raw-text documents in one request. Each item may provide text, docid, and metadata.

ParameterInRequiredTypeDescription
tenantpathyesstring
collectionpathyesstring

Request body (application/json): BatchIngestDocumentsBody

StatusDescriptionType
201Successful ResponseBatchIngestDocumentsResponse
400Bad RequestErrorResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
413Request Entity Too LargeErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
503Service UnavailableErrorResponse
DELETE /v1/collections/{tenant}/{name} Delete a collection

Permanently removes the collection and every document in it.

ParameterInRequiredTypeDescription
tenantpathyesstring
namepathyesstring
StatusDescriptionType
200Successful ResponseDeleteCollectionResponse
400Bad RequestErrorResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
PATCH /v1/collections/{tenant}/{name} Update a collection

Changes editable metadata only; does not re-index documents.

ParameterInRequiredTypeDescription
tenantpathyesstring
namepathyesstring

Request body (application/json): UpdateCollectionBody

StatusDescriptionType
200Successful ResponseUpdateCollectionResponse
400Bad RequestErrorResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
POST /v1/collections/{tenant}/{name} Create a collection

Optionally sets the display name and embedding model; returns 201.

ParameterInRequiredTypeDescription
tenantpathyesstring
namepathyesstring

Request body (application/json): CreateCollectionOptionsBody (optional)

StatusDescriptionType
201Successful ResponseCreateCollectionResponse
400Bad RequestErrorResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
503Service UnavailableErrorResponse
GET /v1/collections/{tenant}/{name}/detail Get collection detail

Settings plus document and chunk counts.

ParameterInRequiredTypeDescription
tenantpathyesstring
namepathyesstring
StatusDescriptionType
200Successful ResponseCollectionDetailResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
POST /v1/collections/{tenant}/{name}/move Rename a collection

Changes the collection slug and therefore its URL.

ParameterInRequiredTypeDescription
tenantpathyesstring
namepathyesstring

Request body (application/json): MoveCollectionBody

StatusDescriptionType
200Successful ResponseMoveCollectionResponse
400Bad RequestErrorResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
409ConflictErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
GET /v1/collections/{tenant}/{name}/queries List logged searches

Most recent first; omits result bodies, which one-by-id returns.

ParameterInRequiredTypeDescription
tenantpathyesstring
namepathyesstring
limitquerynointeger
offsetquerynointeger
StatusDescriptionType
200Successful ResponseListQueryLogsResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
GET /v1/collections/{tenant}/{name}/queries/{query_id} Get a logged search

Includes the query text, filters, and the chunk ids it returned.

ParameterInRequiredTypeDescription
tenantpathyesstring
namepathyesstring
query_idpathyesstring
StatusDescriptionType
200Successful ResponseGetQueryLogResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
POST /v1/collections/{tenant}/{name}/queries/{query_id}/replay Replay a logged search

Re-runs the original query against current data; recorded as a new entry.

ParameterInRequiredTypeDescription
tenantpathyesstring
namepathyesstring
query_idpathyesstring
StatusDescriptionType
200Successful ResponseQueryReplayResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
503Service UnavailableErrorResponse
GET /v1/collections/{tenant}/{name}/search Search a collection

Query-string form of the search; metadata filters are not accepted.

ParameterInRequiredTypeDescription
tenantpathyesstring
namepathyesstring
qqueryyesstring
kquerynointeger
include_commonquerynobooleanInclude configured common collection results when server common search is enabled.
StatusDescriptionType
200Successful ResponseSearchResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
503Service UnavailableErrorResponse
POST /v1/collections/{tenant}/{name}/search Search a collection

Ranked semantic matches with provenance and per-phase timing.

ParameterInRequiredTypeDescription
tenantpathyesstring
namepathyesstring

Request body (application/json): SearchBody

StatusDescriptionType
200Successful ResponseSearchResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
503Service UnavailableErrorResponse
GET /v1/embedders/{tenant} List embedders available to a tenant

Lists configured embedder instances currently available in this tenant namespace.

ParameterInRequiredTypeDescription
tenantpathyesstring
StatusDescriptionType
200Successful ResponseEmbedderInventoryResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
422Validation ErrorHTTPValidationError
429Too Many RequestsErrorResponse
500Internal Server ErrorErrorResponse
GET /v1/search Search shared collections

Query-string form of the shared search; filters are not accepted.

ParameterInRequiredTypeDescription
qqueryyesstring
kquerynointeger
StatusDescriptionType
200Successful ResponseSearchResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
422Validation ErrorHTTPValidationError
500Internal Server ErrorErrorResponse
503Service UnavailableErrorResponse
POST /v1/search Search shared collections

Searches the shared scope; empty when that scope is disabled.

Request body (application/json): SearchBody

StatusDescriptionType
200Successful ResponseSearchResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
422Validation ErrorHTTPValidationError
500Internal Server ErrorErrorResponse
503Service UnavailableErrorResponse

Schemas

BatchDocumentInput

One raw-text or raw-vector document in a batch ingest request.

PropertyTypeRequiredDescription
docidstring (optional)noOptional stable document id; generated when omitted.
metadataobject (optional)noOptional user metadata stored with the document.
textstring (optional)noRaw text to index as one document.
vectorarray of number (optional)noRaw embedding vector (BYOV). Provide exactly one of text or vector.

BatchIngestDocumentResult

Per-document result for batch ingest.

PropertyTypeRequiredDescription
chunksinteger (optional)noNumber of chunks indexed on success.
codestring (optional)noFailure code for this item.
docidstring (optional)noDocument id, when known.
errorstring (optional)noFailure message for this item.
indexintegeryesZero-based item index.
okbooleanyesWhether this document was ingested.

BatchIngestDocumentsBody

Batch raw-text document ingest request.

PropertyTypeRequiredDescription
documentsarray of BatchDocumentInputyesDocuments to ingest.

BatchIngestDocumentsResponse

Result of ingesting several raw-text documents.

PropertyTypeRequiredDescription
collectionstringyesCollection scope.
countintegeryesNumber of items processed.
documentsarray of BatchIngestDocumentResultyesPer-document ingest results.
failedintegeryesNumber of failed items.
latency_msnumber (optional)noTotal server-side time for this request, in ms.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
succeededintegeryesNumber of successful items.
tenantstringyesTenant scope.

Body_ingest_document_v1_collections__tenant___collection__documents_post

PropertyTypeRequiredDescription
docidstring (optional)no
filestring (optional)no
metadatastring (optional)no

Body_restore_archive_v1_admin_archive_put

PropertyTypeRequiredDescription
filestringyes

ChunkSummary

Compact entry for chunk listings.

PropertyTypeRequiredDescription
chunk_pathstring (optional)noPosition of the chunk within the document.
ingested_atstringyesWhen the chunk was ingested (ISO 8601).
metaobjectyesProvenance and user metadata for the chunk.
ridstringyesChunk id.

CollectionDetailResponse

Full detail for one collection.

PropertyTypeRequiredDescription
chunk_countintegeryesNumber of chunks.
created_atstring (optional)noWhen the collection was created (ISO 8601).
display_namestring (optional)noHuman-friendly label.
doc_countintegeryesNumber of documents.
embed_modelstring (optional)noEmbedding model name.
embedder_configobjectnoExtra embedding options.
embedder_typestring (optional)noEmbedding backend in use.
latency_msnumber (optional)noTotal server-side time for this request, in ms.
namestringyesCollection slug.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
tenantstringyesTenant that owns the collection.
vector_space_keystring (optional)noIdentifier for the embedding model and any space-affecting config shared by this collection's vectors.

CollectionSummary

Compact entry for collection listings.

PropertyTypeRequiredDescription
display_namestring (optional)noHuman-friendly label.
embedder_labelstring (optional)noEmbedding backend and model in one label.
namestringyesCollection slug.
vector_space_keystring (optional)noIdentifier for the embedding model and any space-affecting config shared by this collection's vectors.

CreateCollectionOptionsBody

Optional settings when creating a collection.

PropertyTypeRequiredDescription
display_namestring (optional)noHuman-friendly label for the collection.
embed_modelstring (optional)noEmbedding model name.
embedder_configobject (optional)noExtra embedding options.
embedder_typestring (optional)noEmbedding backend to use for this collection.

CreateCollectionResponse

A newly created collection.

PropertyTypeRequiredDescription
collectionstringyesCollection slug.
display_namestringyesHuman-friendly label.
embed_modelstringyesEmbedding model name.
embedder_configobjectnoExtra embedding options.
embedder_typestringyesEmbedding backend in use.
latency_msnumber (optional)noTotal server-side time for this request, in ms.
namestringyesCollection slug.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
tenantstringyesTenant that owns the collection.

DefaultEmbedderInventory

Default embedder resolution.

PropertyTypeRequiredDescription
instance_keysarray of stringyesInstance keys in the default routing pool.
selectorstring (optional)noConfigured embedder.default selector, if any.
vector_keystringyesDefault vector-space key.

DeleteCollectionResponse

Confirmation of a deleted collection.

PropertyTypeRequiredDescription
deletedstringyesSlug of the deleted collection.
latency_msnumber (optional)noTotal server-side time for this request, in ms.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
tenantstringyesTenant that owned the collection.

DeleteDocumentResponse

Confirmation of a deleted document.

PropertyTypeRequiredDescription
chunks_deletedintegeryesNumber of chunks removed.
collectionstringyesCollection it was in.
docidstringyesId of the deleted document.
latency_msnumber (optional)noTotal server-side time for this request, in ms.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
tenantstringyesTenant that owned the document.

DocumentSummary

Compact entry for document listings.

PropertyTypeRequiredDescription
chunk_countintegeryesNumber of chunks.
docidstringyesDocument id.
ingested_atstringyesWhen the document was last ingested (ISO 8601).
versionintegeryesRevision, incremented on re-ingest.

EmbedderInventoryEntry

A configured embedder instance exposed without credentials.

PropertyTypeRequiredDescription
embed_modelstringyesEmbedding model name.
embedder_typestringyesEmbedder implementation type.
keystringyesConfigured embedder instance key.
vector_keystringyesVector-space key produced by this instance.

EmbedderInventoryResponse

Configured embedder instances available to a caller.

PropertyTypeRequiredDescription
countintegeryesNumber of configured instances.
defaultDefaultEmbedderInventoryyesResolved default embedder.
embeddersarray of EmbedderInventoryEntryyesConfigured embedder instances.
latency_msnumber (optional)noTotal server-side time for this request, in ms.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
tenantstring (optional)noTenant scope for tenant-namespaced requests.

ErrorResponse

API error envelope.

PropertyTypeRequiredDescription
codestringyesStable, machine-readable error code.
detailsobject (optional)noOptional structured context about the error.
errorstringyesHuman-readable error message.
latency_msnumber (optional)noTotal server-side time for this request, in ms.
okbooleanyesAlways false on an error response.
request_idstring (optional)noCorrelation id echoed for this request.

GetChunkResponse

Detail for one chunk.

PropertyTypeRequiredDescription
chunk_pathstring (optional)noPosition of the chunk within the document.
collectionstringyesCollection it belongs to.
docidstringyesDocument it belongs to.
ingested_atstringyesWhen the chunk was ingested (ISO 8601).
latency_msnumber (optional)noTotal server-side time for this request, in ms.
metaobjectyesProvenance and user metadata for the chunk.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
ridstringyesChunk id.
tenantstringyesTenant that owns the chunk.

GetDocumentResponse

Detail for one document.

PropertyTypeRequiredDescription
chunk_countintegeryesNumber of chunks.
chunk_idsarray of stringyesChunk ids that make up the document.
collectionstringyesCollection it belongs to.
docidstringyesDocument id.
ingested_atstringyesWhen the document was last ingested (ISO 8601).
latency_msnumber (optional)noTotal server-side time for this request, in ms.
metadataobjectyesUser metadata stored with the document.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
tenantstringyesTenant that owns the document.
versionintegeryesRevision, incremented on re-ingest.

GetQueryLogResponse

A single logged search.

PropertyTypeRequiredDescription
latency_msnumber (optional)noTotal server-side time for this request, in ms.
okbooleannoAlways true on a success response.
queryQueryLogEntryyesThe logged search and its results.
request_idstring (optional)noCorrelation id echoed for this request.

HTTPValidationError

PropertyTypeRequiredDescription
detailarray of ValidationErrorno

IngestDocumentResponse

Result of ingesting a document.

PropertyTypeRequiredDescription
chunksintegeryesNumber of chunks created.
collectionstringyesCollection the document went into.
docidstringyesId of the ingested document.
latency_msnumber (optional)noTotal server-side time for this request, in ms.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
tenantstringyesTenant that owns the document.

ListChunksResponse

All chunks of a document.

PropertyTypeRequiredDescription
chunksarray of ChunkSummaryyesThe chunks.
collectionstringyesCollection scope.
countintegeryesNumber of chunks.
docidstringyesDocument the chunks belong to.
latency_msnumber (optional)noTotal server-side time for this request, in ms.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
tenantstringyesTenant scope of the listing.

ListCollectionsResponse

All collections in a tenant.

PropertyTypeRequiredDescription
collectionsarray of CollectionSummaryyesThe collections.
countintegeryesNumber of collections.
latency_msnumber (optional)noTotal server-side time for this request, in ms.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
tenantstringyesTenant scope of the listing.

ListDocumentsResponse

All documents in a collection.

PropertyTypeRequiredDescription
collectionstringyesCollection scope.
countintegeryesNumber of documents.
documentsarray of DocumentSummaryyesThe documents.
latency_msnumber (optional)noTotal server-side time for this request, in ms.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
tenantstringyesTenant scope of the listing.

ListQueryLogsResponse

A page of logged searches.

PropertyTypeRequiredDescription
collectionstring (optional)noCollection scope, if narrowed.
countintegeryesNumber of entries returned.
latency_msnumber (optional)noTotal server-side time for this request, in ms.
okbooleannoAlways true on a success response.
queriesarray of QueryLogSummaryyesThe logged searches.
request_idstring (optional)noCorrelation id echoed for this request.
tenantstringyesTenant scope of the listing.

ListTenantsResponse

All known tenants.

PropertyTypeRequiredDescription
countintegeryesNumber of tenants.
latency_msnumber (optional)noTotal server-side time for this request, in ms.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
tenantsarray of stringyesTenant slugs.

MoveCollectionBody

Request body for renaming a collection.

PropertyTypeRequiredDescription
new_namestringyesNew collection slug.

MoveCollectionResponse

Confirmation of a renamed collection.

PropertyTypeRequiredDescription
latency_msnumber (optional)noTotal server-side time for this request, in ms.
new_namestringyesNew collection slug.
okbooleannoAlways true on a success response.
old_namestringyesPrevious collection slug.
request_idstring (optional)noCorrelation id echoed for this request.
tenantstringyesTenant that owns the collection.

QueryLogEntry

A recorded search and its results.

PropertyTypeRequiredDescription
actorstringyesWho ran the search.
collectionstringyesCollection searched.
common_collectionstring (optional)noThe included common collection, if any.
common_tenantstring (optional)noTenant of the included common collection, if any.
executed_atstringyesWhen the search ran (ISO 8601).
filtersobject (optional)noMetadata filters applied to the search.
include_commonbooleannoWhether common results were included.
kintegeryesMaximum number of hits requested.
latency_msnumber (optional)noTotal time for the search, in ms.
query_idstringyesId of the logged search.
query_textstringyesThe search text.
replay_ofstring (optional)noOriginal query id when this entry is a replay.
request_idstring (optional)noCorrelation id of the original request.
result_countintegeryesNumber of hits returned.
result_idsarray of stringyesChunk ids returned, in rank order.
tenantstringyesTenant the search ran in.
timingobject (optional)noPer-phase latency breakdown, in ms.

QueryLogSummary

Compact entry for query-log listings.

PropertyTypeRequiredDescription
executed_atstringyesWhen the search ran (ISO 8601).
kintegeryesMaximum number of hits requested.
latency_msnumber (optional)noTotal time for the search, in ms.
query_idstringyesId of the logged search.
query_textstringyesThe search text.
replay_ofstring (optional)noOriginal query id when this entry is a replay.
request_idstring (optional)noCorrelation id of the original request.
result_countintegeryesNumber of hits returned.

QueryReplayResponse

Results of re-running a logged search.

PropertyTypeRequiredDescription
latency_msnumber (optional)noTotal server-side time for this request, in ms.
matchesarray of SearchResultyesHits from the replay.
okbooleannoAlways true on a success response.
original_latency_msnumber (optional)noLatency of the original search, in ms.
original_query_idstringyesId of the search that was replayed.
original_result_countintegeryesHit count of the original search.
replay_query_idstring (optional)noId assigned to this replay. Omitted when query logging is disabled.
request_idstring (optional)noCorrelation id echoed for this request.
timingSearchTiming (optional)noPer-phase latency breakdown.

ResetMetricsResponse

Confirmation that metrics were reset.

PropertyTypeRequiredDescription
latency_msnumber (optional)noTotal server-side time for this request, in ms.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
reset_atnumberyesWhen metrics were reset (Unix seconds).

RestoreArchiveResponse

Confirmation of a restored archive.

PropertyTypeRequiredDescription
latency_msnumber (optional)noTotal server-side time for this request, in ms.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.

SearchBody

Search request body.

PropertyTypeRequiredDescription
filtersobject (optional)noMetadata equality filters to narrow results.
include_commonbooleannoInclude configured common collection results when server common search is enabled.
kintegernoMaximum number of hits.
qstring (optional)noThe search text.
varray of number (optional)noRaw query vector (BYOV). Provide exactly one of q or v.

SearchResponse

Search results with optional timing.

PropertyTypeRequiredDescription
latency_msnumber (optional)noTotal server-side time for this request, in ms.
matchesarray of SearchResultyesRanked list of hits, best first.
okbooleannoAlways true on a success response.
query_idstring (optional)noId for this search, usable with the /queries/{query_id} and /queries/{query_id}/replay endpoints. Omitted when query logging is disabled.
request_idstring (optional)noCorrelation id echoed for this request.
timingSearchTiming (optional)noPer-phase latency breakdown.

SearchResult

A single search hit.

PropertyTypeRequiredDescription
collectionstringyesCollection the hit came from.
idstringyesChunk id of the matching passage.
match_reasonstringyesWhy this result matched.
metaobjectyesProvenance and user metadata for the chunk.
scorenumberyesRelevance score; higher is closer.
tenantstringyesTenant that owns the hit.
textstring (optional)yesThe matched snippet, when stored.

SearchTiming

Per-phase latency breakdown, in ms.

PropertyTypeRequiredDescription
embed_msnumberyesTime to turn the query into a vector.
filter_msnumberyesTime spent applying metadata filters.
hydrate_msnumberyesTime spent loading snippet text and metadata.
search_msnumberyesTime spent finding nearest matches.

UpdateCollectionBody

Request body for editing collection metadata.

PropertyTypeRequiredDescription
display_namestringyesNew human-friendly label.

UpdateCollectionResponse

Confirmation of updated collection metadata.

PropertyTypeRequiredDescription
display_namestringyesUpdated label.
latency_msnumber (optional)noTotal server-side time for this request, in ms.
namestringyesCollection slug.
okbooleannoAlways true on a success response.
request_idstring (optional)noCorrelation id echoed for this request.
tenantstringyesTenant that owns the collection.

ValidationError

PropertyTypeRequiredDescription
ctxobjectno
inputobjectno
locarray of string, integer (optional)yes
msgstringyes
typestringyes