Skip to main content
Get started with the Parse API by parsing a sample customer due diligence form. You submit the document as a Parse Job, then collect a structured Markdown rendering of it, ready for downstream workflows like RAG, search, or extraction. If you would rather not write the request yourself, the CLI Quickstart gets the same result in two commands.

Prerequisites

Tutorial: Parse a Document

1

Set the API key as an environment variable

The library reads your API key from the VISION_AGENT_API_KEY environment variable.
2

Install the Python library

Install the ade-python library.
3

Create your code

The wait method polls the job for you and returns it once it reaches a terminal state. Save the code block below as parse.py.
4

Run your code

Run the file you created. The script saves the parsed Markdown to markdown-kyc-form.md in the current directory.

Use the Markdown

Open markdown-kyc-form.md. It holds the form as reading-order Markdown, ready for a RAG application, a search index, or an LLM prompt. To pull named fields out of it instead, pass it to Extract.

What’s Next

How Parse Works

Understand the response shape in depth: pages, blocks, and grounding.

Extract Data

Pull named fields out of this Markdown with a schema.

Credit Consumption

See how credit usage is calculated per page.

Troubleshoot

Status codes, errors, and how to resolve them.