Skip to main content
POST
Extract structured data with two body fields: input and schema. To reuse a completed Parse, send parse_id and schema as JSON instead.
Start with Parse your first document. Chain Parse and Extract: pass a completed Parse ID as parse_id to reuse its content.

Authorizations

unstructured-api-key
string
header
required

Headers

Prefer
string

Wait up to this many seconds for completed extraction.

Body

A parse ID to extract from, and the shape to extract into.

parse_id
string
required

The ID of the parse to extract against. It is not parsed again.

Example:

"9eb6c914-02a5-4c5d-8490-a06476946a38"

schema
object
required

A JSON Schema. Subject to the same engine constraints as schema on the parse call, so required must list every key in properties, additionalProperties must be false, and the serialized schema is limited to 1,048,576 bytes.

prompt
string

Optional free-text guidance that shapes how extracted fields are filled. Limited to 1,048,576 bytes when encoded as UTF-8.

Response

Fields extracted. Check status for partial success.

Parse operation metadata plus the canonical document, possibly before extraction has finished.

id
string
required

Underlying job id, for support and tracing.

status
enum<string>
required

Document processing or terminal status.

Available options:
processing,
completed,
completed_with_warnings
profile
enum<string> | null
required

The effective profile used for raw-document partitioning.

Available options:
balanced,
best
markdown
string | null
required

Rendered Markdown projection when requested; null when elements are requested.

format_version
enum<string>
required

The document envelope version.

Available options:
2.0
metadata
object
required

Public document-level metadata.

extracted_data
object[] | null
required

Completed extraction results are available only after extraction has finished.

elements
object[]
required

Public document elements.

source
object | null
required

The associated original uploaded source file, when known.

warnings
object[]

Notes about a result that still succeeded.