Skip to main content
The Extract.Run() method pulls specific fields from documents as structured JSON. You define a JSON schema with the fields you need, and Extract returns values matching that schema.

Basic Usage


Method Signatures

Synchronous Extract

Asynchronous Extract

The RunJob method returns a JobID that you can use with client.Job.Get() to retrieve results.

Array Extraction

For documents with repeating data (line items, transactions), enable array extraction:

Citations

Enable citations to get source locations for each extracted value:

System Prompt

Add a system prompt to guide extraction:

Next Steps