Response Formats
The anyformat API returns JSON responses. This page covers the response shapes used across the API.Paginated List Responses
Endpoints that return multiple items use paginated responses:| Field | Description |
|---|---|
count | Total number of items across all pages |
page | Current page number (1-indexed) |
page_size | Number of items per page (max 100) |
results | Array of items for the current page |
Workflow Results Format
The results endpoint (/v2/workflows/{id}/results/) always returns unified JSON. The response is keyed by filename, with each file containing parse and extraction data.
file_id query parameter to filter results to a single file:
Response Structure
Each file entry in the response contains aresults object with two possible keys:
| Key | Presence | Description |
|---|---|---|
parse | Always | Contains markdown with the visual document markdown (may include base64 images) |
extraction | Only when the workflow has extraction fields | Contains extracted field values with confidence scores |
Example Response
extraction key is omitted:
Extraction Result Field Structure
Each extracted field in theextraction object contains:
| Property | Description |
|---|---|
value | The extracted value |
confidence | Confidence score (0-100) |
Supported Endpoints
| Endpoint | Description |
|---|---|
GET /v2/workflows/{id}/results/ | Unified JSON results for all files in a workflow |
GET /v2/workflows/{id}/results/?file_id=UUID | Results filtered to a single file |
GET /v2/files/{id}/extraction/ | Extraction results for a single file |
