GET
/
parse
/
jobs
/
{job_id}
/
results
curl --request GET \
  --url https://api.contextual.ai/v1/parse/jobs/{job_id}/results \
  --header 'Authorization: Bearer <token>'
{
  "file_name": "<string>",
  "status": "completed",
  "pages": [
    {
      "index": 0,
      "markdown": "<string>",
      "blocks": [
        {
          "id": "<string>",
          "type": "heading",
          "bounding_box": {
            "x0": 0.5,
            "y0": 0.5,
            "x1": 0.5,
            "y1": 0.5
          },
          "markdown": "<string>",
          "confidence_level": "high",
          "page_index": 123,
          "parent_ids": [
            "3c90c3cc-0d44-4b50-8888-8dd25736052a"
          ],
          "hierarchy_level": 123
        }
      ]
    }
  ],
  "markdown_document": "<string>",
  "document_metadata": {
    "hierarchy": {
      "blocks": [
        {
          "id": "<string>",
          "type": "heading",
          "bounding_box": {
            "x0": 0.5,
            "y0": 0.5,
            "x1": 0.5,
            "y1": 0.5
          },
          "markdown": "<string>",
          "confidence_level": "high",
          "page_index": 123,
          "parent_ids": [
            "3c90c3cc-0d44-4b50-8888-8dd25736052a"
          ],
          "hierarchy_level": 123
        }
      ],
      "table_of_contents": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

job_id
string
required

Unique ID of the parse job

Query Parameters

output_types
enum<string>[]

The desired output format(s) of the parsed file. Must be markdown-document, markdown-per-page, and/or blocks-per-page. Specify multiple values to get multiple formats in the response. markdown-document parses the whole document into a single concatenated markdown output. markdown-per-page provides markdown output per page. blocks-per-page provides a structured JSON representation of the content blocks on each page, sorted by reading order.

Response

200
application/json

Successful Response

/parse results reponse object.