Skip to Content

Classify a retained document

POST
/v1/documents/{document_id}/classifications

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.

Authorization

Bearer
headerAuthorizationBearer <token>

Send your API key in the Authorization header: Bearer <api_key>.

Path Parameters

document_id*string

Document ID returned in job status or a search hit.

Header Parameters

idempotency-key?string

A literal visible ASCII key for safe request replay.

Match^[\x21-\x7e]+$
Length1 <= length <= 255

Request Body

application/json
  1. body
Items1 <= items <= 20
[index: integer]?

Response Body

Classification accepted; poll its ID for status and results.

application/json
  1. response
id*string
status*string
Value in"pending""processing""completed""failed"
Example Response
{  "id": "string",  "status": "pending"}