REST API Generated from the 0.9.6 OpenAPI specification .
Endpoints GET
/health
Health check Returns ready or degraded, plus the running version.
Status Description Type 200Successful Response object
GET
/health/live
Liveness check Always succeeds while the process is running.
Status Description Type 200Successful Response object
GET
/health/metrics
Metrics snapshot Counters, version, and hardware info as JSON. Requires the admin key when auth.mode=static.
Status Description Type 200Successful Response object
GET
/health/ready
Readiness check Returns 503 until storage and embeddings are usable. Does not expose local filesystem paths.
Status Description Type 200Successful Response object
GET
/metrics
Prometheus metrics The same counters in Prometheus exposition format. Requires the admin key when auth.mode=static.
Status Description Type 200Successful Response object
GET
/v1/admin/archive
Download an archive Streams the whole dataset as a zip; requires the admin key.
PUT
/v1/admin/archive
Restore an archive Overwrites current data with the uploaded zip. The admin key is checked before body consumption; general request and document size limits do not apply.
Request body (multipart/form-data): Body_restore_archive_v1_admin_archive_put
POST
/v1/admin/collections/{tenant}/{name}/move
Rename a collection Changes the slug, and therefore the URL; requires the admin key.
Parameter In Required Type Description tenantpath yes string namepath yes string
Request body (application/json): MoveCollectionBody
GET
/v1/admin/embedders
List embedder instances Lists configured embedder instances and the resolved default; requires the admin key.
DELETE
/v1/admin/metrics
Reset metrics Zeroes request counters; requires the admin key.
GET
/v1/admin/queries/{query_id}
Get any logged search Finds a search by id without knowing its tenant; requires the admin key.
Parameter In Required Type Description query_idpath yes string
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.
Parameter In Required Type Description query_idpath yes string
GET
/v1/admin/tenants
List tenants Names every tenant on the instance; requires the admin key.
GET
/v1/collections/{tenant}
List collections One entry per collection, with display name and embedding model.
Parameter In Required Type Description tenantpath yes string
GET
/v1/collections/{tenant}/{collection}/chunks/{rid}
Get a chunk Returns the chunk's provenance and metadata, not its text.
Parameter In Required Type Description tenantpath yes string collectionpath yes string ridpath yes string
GET
/v1/collections/{tenant}/{collection}/chunks/{rid}/content
Get chunk content Returns the chunk's raw text as the response body.
Parameter In Required Type Description tenantpath yes string collectionpath yes string ridpath yes string
GET
/v1/collections/{tenant}/{collection}/documents
List documents One entry per document, with version and chunk count.
Parameter In Required Type Description tenantpath yes string collectionpath yes string
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.
Parameter In Required Type Description tenantpath yes string collectionpath yes string csv_has_headerquery no string (optional) csv_meta_colsquery no string (optional) csv_include_colsquery no string (optional)
Request body (multipart/form-data): Body_ingest_document_v1_collections__tenant___collection__documents_post
DELETE
/v1/collections/{tenant}/{collection}/documents/{docid}
Delete a document Removes the document and all chunks derived from it.
Parameter In Required Type Description tenantpath yes string collectionpath yes string docidpath yes string
GET
/v1/collections/{tenant}/{collection}/documents/{docid}
Get a document Includes stored metadata, version, and its chunk ids.
Parameter In Required Type Description tenantpath yes string collectionpath yes string docidpath yes string
GET
/v1/collections/{tenant}/{collection}/documents/{docid}/chunks
List document chunks Chunks in document order, with provenance metadata.
Parameter In Required Type Description tenantpath yes string collectionpath yes string docidpath yes string
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.
Parameter In Required Type Description tenantpath yes string collectionpath yes string
Request body (application/json): BatchIngestDocumentsBody
DELETE
/v1/collections/{tenant}/{name}
Delete a collection Permanently removes the collection and every document in it.
Parameter In Required Type Description tenantpath yes string namepath yes string
PATCH
/v1/collections/{tenant}/{name}
Update a collection Changes editable metadata only; does not re-index documents.
Parameter In Required Type Description tenantpath yes string namepath yes string
Request body (application/json): UpdateCollectionBody
POST
/v1/collections/{tenant}/{name}
Create a collection Optionally sets the display name and embedding model; returns 201.
Parameter In Required Type Description tenantpath yes string namepath yes string
Request body (application/json): CreateCollectionOptionsBody (optional)
GET
/v1/collections/{tenant}/{name}/detail
Get collection detail Settings plus document and chunk counts.
Parameter In Required Type Description tenantpath yes string namepath yes string
POST
/v1/collections/{tenant}/{name}/move
Rename a collection Changes the collection slug and therefore its URL.
Parameter In Required Type Description tenantpath yes string namepath yes string
Request body (application/json): MoveCollectionBody
GET
/v1/collections/{tenant}/{name}/queries
List logged searches Most recent first; omits result bodies, which one-by-id returns.
Parameter In Required Type Description tenantpath yes string namepath yes string limitquery no integer offsetquery no integer
GET
/v1/collections/{tenant}/{name}/queries/{query_id}
Get a logged search Includes the query text, filters, and the chunk ids it returned.
Parameter In Required Type Description tenantpath yes string namepath yes string query_idpath yes string
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.
Parameter In Required Type Description tenantpath yes string namepath yes string query_idpath yes string
GET
/v1/collections/{tenant}/{name}/search
Search a collection Query-string form of the search; metadata filters are not accepted.
Parameter In Required Type Description tenantpath yes string namepath yes string qquery yes string kquery no integer include_commonquery no boolean Include configured common collection results when server common search is enabled.
POST
/v1/collections/{tenant}/{name}/search
Search a collection Ranked semantic matches with provenance and per-phase timing.
Parameter In Required Type Description tenantpath yes string namepath yes string
Request body (application/json): SearchBody
GET
/v1/embedders/{tenant}
List embedders available to a tenant Lists configured embedder instances currently available in this tenant namespace.
Parameter In Required Type Description tenantpath yes string
GET
/v1/search
Search shared collections Query-string form of the shared search; filters are not accepted.
Parameter In Required Type Description qquery yes string kquery no integer
POST
/v1/search
Search shared collections Searches the shared scope; empty when that scope is disabled.
Request body (application/json): SearchBody
Schemas BatchIngestDocumentResult Per-document result for batch ingest.
Property Type Required Description chunksinteger (optional) no Number of chunks indexed on success. codestring (optional) no Failure code for this item. docidstring (optional) no Document id, when known. errorstring (optional) no Failure message for this item. indexinteger yes Zero-based item index. okboolean yes Whether this document was ingested.
BatchIngestDocumentsBody Batch raw-text document ingest request.
Property Type Required Description documentsarray of BatchDocumentInput yes Documents to ingest.
BatchIngestDocumentsResponse Result of ingesting several raw-text documents.
Property Type Required Description collectionstring yes Collection scope. countinteger yes Number of items processed. documentsarray of BatchIngestDocumentResult yes Per-document ingest results. failedinteger yes Number of failed items. latency_msnumber (optional) no Total server-side time for this request, in ms. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. succeededinteger yes Number of successful items. tenantstring yes Tenant scope.
Body_ingest_document_v1_collections__tenant___collection__documents_post Property Type Required Description docidstring (optional) no filestring (optional) no metadatastring (optional) no
Body_restore_archive_v1_admin_archive_put Property Type Required Description filestring yes
ChunkSummary Compact entry for chunk listings.
Property Type Required Description chunk_pathstring (optional) no Position of the chunk within the document. ingested_atstring yes When the chunk was ingested (ISO 8601). metaobject yes Provenance and user metadata for the chunk. ridstring yes Chunk id.
CollectionDetailResponse Full detail for one collection.
Property Type Required Description chunk_countinteger yes Number of chunks. created_atstring (optional) no When the collection was created (ISO 8601). display_namestring (optional) no Human-friendly label. doc_countinteger yes Number of documents. embed_modelstring (optional) no Embedding model name. embedder_configobject no Extra embedding options. embedder_typestring (optional) no Embedding backend in use. latency_msnumber (optional) no Total server-side time for this request, in ms. namestring yes Collection slug. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. tenantstring yes Tenant that owns the collection. vector_space_keystring (optional) no Identifier for the embedding model and any space-affecting config shared by this collection's vectors.
CollectionSummary Compact entry for collection listings.
Property Type Required Description display_namestring (optional) no Human-friendly label. embedder_labelstring (optional) no Embedding backend and model in one label. namestring yes Collection slug. vector_space_keystring (optional) no Identifier for the embedding model and any space-affecting config shared by this collection's vectors.
CreateCollectionOptionsBody Optional settings when creating a collection.
Property Type Required Description display_namestring (optional) no Human-friendly label for the collection. embed_modelstring (optional) no Embedding model name. embedder_configobject (optional) no Extra embedding options. embedder_typestring (optional) no Embedding backend to use for this collection.
CreateCollectionResponse A newly created collection.
Property Type Required Description collectionstring yes Collection slug. display_namestring yes Human-friendly label. embed_modelstring yes Embedding model name. embedder_configobject no Extra embedding options. embedder_typestring yes Embedding backend in use. latency_msnumber (optional) no Total server-side time for this request, in ms. namestring yes Collection slug. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. tenantstring yes Tenant that owns the collection.
DefaultEmbedderInventory Default embedder resolution.
Property Type Required Description instance_keysarray of string yes Instance keys in the default routing pool. selectorstring (optional) no Configured embedder.default selector, if any. vector_keystring yes Default vector-space key.
DeleteCollectionResponse Confirmation of a deleted collection.
Property Type Required Description deletedstring yes Slug of the deleted collection. latency_msnumber (optional) no Total server-side time for this request, in ms. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. tenantstring yes Tenant that owned the collection.
DeleteDocumentResponse Confirmation of a deleted document.
Property Type Required Description chunks_deletedinteger yes Number of chunks removed. collectionstring yes Collection it was in. docidstring yes Id of the deleted document. latency_msnumber (optional) no Total server-side time for this request, in ms. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. tenantstring yes Tenant that owned the document.
DocumentSummary Compact entry for document listings.
Property Type Required Description chunk_countinteger yes Number of chunks. docidstring yes Document id. ingested_atstring yes When the document was last ingested (ISO 8601). versioninteger yes Revision, incremented on re-ingest.
EmbedderInventoryEntry A configured embedder instance exposed without credentials.
Property Type Required Description embed_modelstring yes Embedding model name. embedder_typestring yes Embedder implementation type. keystring yes Configured embedder instance key. vector_keystring yes Vector-space key produced by this instance.
EmbedderInventoryResponse Configured embedder instances available to a caller.
Property Type Required Description countinteger yes Number of configured instances. defaultDefaultEmbedderInventory yes Resolved default embedder. embeddersarray of EmbedderInventoryEntry yes Configured embedder instances. latency_msnumber (optional) no Total server-side time for this request, in ms. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. tenantstring (optional) no Tenant scope for tenant-namespaced requests.
ErrorResponse API error envelope.
Property Type Required Description codestring yes Stable, machine-readable error code. detailsobject (optional) no Optional structured context about the error. errorstring yes Human-readable error message. latency_msnumber (optional) no Total server-side time for this request, in ms. okboolean yes Always false on an error response. request_idstring (optional) no Correlation id echoed for this request.
GetChunkResponse Detail for one chunk.
Property Type Required Description chunk_pathstring (optional) no Position of the chunk within the document. collectionstring yes Collection it belongs to. docidstring yes Document it belongs to. ingested_atstring yes When the chunk was ingested (ISO 8601). latency_msnumber (optional) no Total server-side time for this request, in ms. metaobject yes Provenance and user metadata for the chunk. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. ridstring yes Chunk id. tenantstring yes Tenant that owns the chunk.
GetDocumentResponse Detail for one document.
Property Type Required Description chunk_countinteger yes Number of chunks. chunk_idsarray of string yes Chunk ids that make up the document. collectionstring yes Collection it belongs to. docidstring yes Document id. ingested_atstring yes When the document was last ingested (ISO 8601). latency_msnumber (optional) no Total server-side time for this request, in ms. metadataobject yes User metadata stored with the document. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. tenantstring yes Tenant that owns the document. versioninteger yes Revision, incremented on re-ingest.
GetQueryLogResponse A single logged search.
Property Type Required Description latency_msnumber (optional) no Total server-side time for this request, in ms. okboolean no Always true on a success response. queryQueryLogEntry yes The logged search and its results. request_idstring (optional) no Correlation id echoed for this request.
IngestDocumentResponse Result of ingesting a document.
Property Type Required Description chunksinteger yes Number of chunks created. collectionstring yes Collection the document went into. docidstring yes Id of the ingested document. latency_msnumber (optional) no Total server-side time for this request, in ms. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. tenantstring yes Tenant that owns the document.
ListChunksResponse All chunks of a document.
Property Type Required Description chunksarray of ChunkSummary yes The chunks. collectionstring yes Collection scope. countinteger yes Number of chunks. docidstring yes Document the chunks belong to. latency_msnumber (optional) no Total server-side time for this request, in ms. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. tenantstring yes Tenant scope of the listing.
ListCollectionsResponse All collections in a tenant.
Property Type Required Description collectionsarray of CollectionSummary yes The collections. countinteger yes Number of collections. latency_msnumber (optional) no Total server-side time for this request, in ms. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. tenantstring yes Tenant scope of the listing.
ListDocumentsResponse All documents in a collection.
Property Type Required Description collectionstring yes Collection scope. countinteger yes Number of documents. documentsarray of DocumentSummary yes The documents. latency_msnumber (optional) no Total server-side time for this request, in ms. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. tenantstring yes Tenant scope of the listing.
ListQueryLogsResponse A page of logged searches.
Property Type Required Description collectionstring (optional) no Collection scope, if narrowed. countinteger yes Number of entries returned. latency_msnumber (optional) no Total server-side time for this request, in ms. okboolean no Always true on a success response. queriesarray of QueryLogSummary yes The logged searches. request_idstring (optional) no Correlation id echoed for this request. tenantstring yes Tenant scope of the listing.
ListTenantsResponse All known tenants.
Property Type Required Description countinteger yes Number of tenants. latency_msnumber (optional) no Total server-side time for this request, in ms. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. tenantsarray of string yes Tenant slugs.
MoveCollectionBody Request body for renaming a collection.
Property Type Required Description new_namestring yes New collection slug.
MoveCollectionResponse Confirmation of a renamed collection.
Property Type Required Description latency_msnumber (optional) no Total server-side time for this request, in ms. new_namestring yes New collection slug. okboolean no Always true on a success response. old_namestring yes Previous collection slug. request_idstring (optional) no Correlation id echoed for this request. tenantstring yes Tenant that owns the collection.
QueryLogEntry A recorded search and its results.
Property Type Required Description actorstring yes Who ran the search. collectionstring yes Collection searched. common_collectionstring (optional) no The included common collection, if any. common_tenantstring (optional) no Tenant of the included common collection, if any. executed_atstring yes When the search ran (ISO 8601). filtersobject (optional) no Metadata filters applied to the search. include_commonboolean no Whether common results were included. kinteger yes Maximum number of hits requested. latency_msnumber (optional) no Total time for the search, in ms. query_idstring yes Id of the logged search. query_textstring yes The search text. replay_ofstring (optional) no Original query id when this entry is a replay. request_idstring (optional) no Correlation id of the original request. result_countinteger yes Number of hits returned. result_idsarray of string yes Chunk ids returned, in rank order. tenantstring yes Tenant the search ran in. timingobject (optional) no Per-phase latency breakdown, in ms.
QueryLogSummary Compact entry for query-log listings.
Property Type Required Description executed_atstring yes When the search ran (ISO 8601). kinteger yes Maximum number of hits requested. latency_msnumber (optional) no Total time for the search, in ms. query_idstring yes Id of the logged search. query_textstring yes The search text. replay_ofstring (optional) no Original query id when this entry is a replay. request_idstring (optional) no Correlation id of the original request. result_countinteger yes Number of hits returned.
QueryReplayResponse Results of re-running a logged search.
Property Type Required Description latency_msnumber (optional) no Total server-side time for this request, in ms. matchesarray of SearchResult yes Hits from the replay. okboolean no Always true on a success response. original_latency_msnumber (optional) no Latency of the original search, in ms. original_query_idstring yes Id of the search that was replayed. original_result_countinteger yes Hit count of the original search. replay_query_idstring (optional) no Id assigned to this replay. Omitted when query logging is disabled. request_idstring (optional) no Correlation id echoed for this request. timingSearchTiming (optional)no Per-phase latency breakdown.
ResetMetricsResponse Confirmation that metrics were reset.
Property Type Required Description latency_msnumber (optional) no Total server-side time for this request, in ms. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. reset_atnumber yes When metrics were reset (Unix seconds).
RestoreArchiveResponse Confirmation of a restored archive.
Property Type Required Description latency_msnumber (optional) no Total server-side time for this request, in ms. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request.
SearchBody Search request body.
Property Type Required Description filtersobject (optional) no Metadata equality filters to narrow results. include_commonboolean no Include configured common collection results when server common search is enabled. kinteger no Maximum number of hits. qstring (optional) no The search text. varray of number (optional) no Raw query vector (BYOV). Provide exactly one of q or v.
SearchResponse Search results with optional timing.
Property Type Required Description latency_msnumber (optional) no Total server-side time for this request, in ms. matchesarray of SearchResult yes Ranked list of hits, best first. okboolean no Always true on a success response. query_idstring (optional) no Id for this search, usable with the /queries/{query_id} and /queries/{query_id}/replay endpoints. Omitted when query logging is disabled. request_idstring (optional) no Correlation id echoed for this request. timingSearchTiming (optional)no Per-phase latency breakdown.
SearchResult A single search hit.
Property Type Required Description collectionstring yes Collection the hit came from. idstring yes Chunk id of the matching passage. match_reasonstring yes Why this result matched. metaobject yes Provenance and user metadata for the chunk. scorenumber yes Relevance score; higher is closer. tenantstring yes Tenant that owns the hit. textstring (optional) yes The matched snippet, when stored.
SearchTiming Per-phase latency breakdown, in ms.
Property Type Required Description embed_msnumber yes Time to turn the query into a vector. filter_msnumber yes Time spent applying metadata filters. hydrate_msnumber yes Time spent loading snippet text and metadata. search_msnumber yes Time spent finding nearest matches.
UpdateCollectionBody Request body for editing collection metadata.
Property Type Required Description display_namestring yes New human-friendly label.
UpdateCollectionResponse Confirmation of updated collection metadata.
Property Type Required Description display_namestring yes Updated label. latency_msnumber (optional) no Total server-side time for this request, in ms. namestring yes Collection slug. okboolean no Always true on a success response. request_idstring (optional) no Correlation id echoed for this request. tenantstring yes Tenant that owns the collection.
ValidationError Property Type Required Description ctxobject no inputobject no locarray of string, integer (optional) yes msgstring yes typestring yes
Journey complete
You are ready to integrate with PaveDB over HTTP.
Built from PaveDB core 0.9.6
(2026-08-29 ),
Python SDK 0.1.4
(2026-08-13 ),
Elixir Client 0.1.0
(2026-08-13 ),
and TypeScript Client 0.1.1
(2026-08-20 ). Pinned
2026-08-29 .