Skip to main content
POST
Batch get documents by IDs

Authorizations

Authorization
string
header
required

Mixpeek API key, sent as Authorization: Bearer mxp_sk_.... Create one in Studio under Settings → API Keys, or with an admin key via POST /v1/organizations/users/{user_email}/api-keys. A missing header returns 403; an invalid or revoked key returns 401.

X-Namespace
string
header
required

Namespace id (ns_...), not the namespace name. This scopes the request rather than authenticating it, and it is required on every operation marked x-mixpeek-namespace-scoped.

Body

application/json

Batch retrieve documents by their IDs.

document_ids
string[]
required

List of document IDs to retrieve.

Required array length: 1 - 1000 elements
return_presigned_urls
boolean
default:false

Generate presigned download URLs for document blobs.

Response

Successful Response

Response for batch document retrieval.

documents
DocumentResponse · object[]

Retrieved documents.

not_found
string[]

Document IDs that were not found.