v1

latestOpenAPI 3.0.3MIT2026-07-24122271451.2 KB
Documents

[Beta] Get AI Metadata for a Document

Returns the AI metadata fields populated for the document. Each result combines the field definition (id, key, field_type, settings) with the extracted value (value, acceptance_status).

Only fields that have an extracted value for the document are returned.

The endpoint signals AI extraction state via the HTTP status code:

  • 202 extraction_pending — extraction is in progress. Clients should retry after the number of seconds indicated in the Retry-After header.

  • 204 No Content — extraction has terminally failed for this document. No body is returned; retrying will not help — contact support.

  • 409 not_started — extraction has not been triggered for this document (typically because the document is not yet completed).

get/public/beta/documents/{document_id}/ai-metadata

Path parameters

document_idstring required

The unique identifier of the document.

Query parameters

limitinteger

Maximum number of fields to return in one response.

offsetinteger

Number of fields to skip before starting to collect the result set. For predictable paging, use multiples of limit.

Response

AI metadata is available. Returns the fields populated for the document. results is empty when nothing has been extracted yet.

countinteger required

Total number of AI metadata fields available for the document across all pages. The current page slice is in results and is bounded by limit and offset.

Example response

{
  "count": 12,
  "results": [
    {
      "id": "3SBkwkGBbMn6btzHTiKkGn",
      "key": "Counterparty name",
      "value": {
        "value": "Acme Corp"
      }
    }
  ]
}