Skip to main content
The Get elements endpoint returns the parsed elements (chunks/partitions) of a source in the same format as Get build status elements. Each item includes explicit fields: element_id, element_type, text, markdown, html, img_base64 (optional), position, page_number, bounding_box, page_layout, and more.

Endpoint overview

Authentication

This endpoint requires authentication using an API token. Include your API token as a Bearer token in the Authorization header.
Learn how to create and manage API tokens in the API Tokens guide.

Request format

Headers

Query parameters

When page and page_size are omitted, all elements are returned (no pagination). When only one is provided, pagination is not applied.

Response format

Success response (200 OK)

Paginated response with items as BuildStatusElement (same shape as elements in Get build status):

Pagination fields

Element fields (BuildStatusElement)

Element types

Code examples

JavaScript/Node.js

Python

cURL

Error responses

Example body:

Best practices

  • Use file_id: Obtain it from List sources or Get build status after ingestion.
  • Reduce payload: Set suppress_img_base64=true when you don’t need image data.
  • Filter server-side: Use type, page_numbers, and elementsToRemove to limit results.
  • Pagination: Use page and page_size (max 100) for large documents to avoid large responses.

Next steps

Get build status

Poll build status and optionally get elements for an async ingestion

List sources

List all sources and their file_ids

Upload sources

Ingest files, URLs, GitHub, or YouTube (async)

Reprocess source

Re-process a source with a different partition method (async)