Skip to Content

List documents

GET
/v1/documents

List retained documents, optionally matching external identifiers exactly. Filters apply before pagination; both identifiers must match when supplied together. Identifiers are not unique. API keys require results:read; Search access is not required.

Authorization

Bearer
headerAuthorizationBearer <token>

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

Query Parameters

page_start?number

One-based first item position.

Default1
page_limit?number

Maximum item count.

Default25
external_id?string

Match this external document identifier exactly after trimming surrounding whitespace. Case-sensitive; combined with other filters using AND.

Length1 <= length <= 255
external_group_id?string

Match this external group identifier exactly after trimming surrounding whitespace. Case-sensitive; combined with other filters using AND.

Length1 <= length <= 255
order?string
Default"newest"
Value in"newest""active"
categories?|array<string>

Match any selected category on the current classification, ignoring case. Repeat categories for multiple names; omit to apply no category filter.

Response Body

Tenant Documents listed

application/json
  1. response
documents*array<>
categories*array<string>

Categories assigned across retained Documents, deduplicated ignoring case with original spelling preserved. Independent of this page and filter.

pagination*
Example Response
{  "documents": [    {      "status": "waiting_for_upload",      "progress": {        "pages_total": 0,        "pages_completed": 0      },      "detail": {        "code": "string",        "message": "string",        "stage": "upload",        "required_pages": 1      },      "completed_at": "2019-08-24T14:15:22Z",      "id": "string",      "filename": "string",      "confidence_score": 0,      "webhook": {        "status": "pending"      },      "classification": {        "id": "string",        "status": "pending",        "categories": [          "string"        ]      },      "thumbnail": {        "url": "http://example.com",        "expires_at": "2019-08-24T14:15:22Z"      },      "created_at": "2019-08-24T14:15:22Z"    }  ],  "categories": [    "string"  ],  "pagination": {    "page_start": 1,    "page_limit": 1,    "next_start": 1  }}