Search retained documents, or supply filters.document_id to find pages within one document. Use filters.external_id and filters.external_group_id to narrow the search. Every result must match all supplied filters. Exact identifier matches appear first and include identifier.field and identifier.value. Identifier and filename matches have a null page. Search returns a limited set of matches; use GET /v1/documents for a complete paginated list by external ID. Search in your own words, or use quoted phrases, uppercase OR, and exclusions for word matching. Search must be enabled for the workspace. API keys require the results:read scope.
BearerAuthorizationBearer <token>Send your API key in the Authorization header: Bearer <api_key>.
application/json- body
query*stringText or a whole external identifier to find. Supports quoted phrases, uppercase OR, exclusions, and signed amounts.
1 <= length <= 500filters?Restrict eligible documents before search. All supplied filters combine with AND.
limit?integerMaximum number of ranked hits to return.
0 < value <= 105Ranked documents or pages
application/json- response
hits*array<>items <= 10{ "hits": [ { "document": { "id": "doc_01j00000000000000000000000", "filename": "statement.pdf", "status": "completed", "progress": { "pages_total": 1, "pages_completed": 1 }, "detail": null, "confidence_score": 95, "classification": null, "thumbnail": null, "webhook": null, "created_at": "2026-09-18T12:00:00Z", "completed_at": "2026-09-18T12:02:00Z" }, "page": { "page_number": 1, "excerpt": "Closing balance: $1,250.00" }, "identifier": null } ]}Get a document page
Read one page's Markdown and confidence score. Unavailable content is null. Image includes a temporary URL and its expiry, or null when unavailable. API keys require the results:read scope.
Classify a retained document
Classify available recovered content without uploading or recovering it again. Included in every plan. Requires results:read and classifications:create. Supply a schema, or omit the body and Content-Type to use the workspace default. A schema is required if no default is saved. Only one classification can be active per Document. Identical current criteria reuse pending work or a completed result. Reuse an Idempotency-Key to replay the same submission, even if defaults later change.