# Parse (/docs/parse)

Recover headings, paragraphs, lists, and tables from your documents. Results keep the original page order, with source images available for checking the content.

Use the [portal quickstart](/docs/portal-quickstart) to try a document in your browser, or the [SDK quickstart](/docs/sdk-quickstart) to set up your first script.

## From file to content [#from-file-to-content]

With the SDK configured, one call uploads your file and waits for its result:

```js
const result = await client.documents.create({ file: "statement.pdf" })

for (const page of result.pages) {
  console.log(page.page_number, page.markdown)
}
```

The SDK method is `documents.create`. For background processing, use [`jobs.create`](/docs/background-processing) and collect the result later.

## What comes back [#what-comes-back]

Each page has a number and its recovered Markdown. Keep those together when you pass content to another application or an AI agent, so the reader can return to the source.

| Result          | Use it to                                        |
| --------------- | ------------------------------------------------ |
| `document.id`   | Retrieve the document again without uploading it |
| `pages`         | Read the recovered content in page order         |
| `warnings`      | Find content that needs attention                |
| Page confidence | Choose pages to review against the source        |

Tables that continue across pages remain separate. Confidence is an estimate, not a guarantee of accuracy. [Read results](/docs/results) explains the complete response and the difference between blank and failed pages.

## Check the source [#check-the-source]

In the portal, open a document to compare its page image with the formatted Markdown. Switch to **Raw** to see the text your integration receives.

From code, `documents.page` retrieves one page and temporary access to its source image. `documents.result` retrieves the saved content. See [page and result reads](/docs/results#retrieve-content-later).

## Use your own files [#use-your-own-files]

Upload PDFs, supported still images, office documents, and presentations. [Supported files](/docs/files-and-limits) lists the formats and limits; [Upload documents](/docs/uploads) covers file inputs and linking submissions to your own records.

Once content is ready, [Search](/docs/search) can help you find passages, and [Classify](/docs/classify) can apply your categories to the document.
