1
Get an API key
Create a key in the Pulse dashboard under API Keys, as Authentication describes. Then set it as an environment variable, so the examples below can read it:
2
Install an SDK
Install the Python or TypeScript SDK. To call the API with cURL instead, skip this step.The SDKs send your key and the
Pulse-Version: 2 header on every request. With cURL, you send both headers yourself.3
Parse a document
This request parses the sample statement from its URL and waits for the parse to finish. The response names the parse. It doesn’t hold the content: you read that from the parse’s result route in the last step.To send a file from disk instead of a URL, send it as
config.model is the only option you must send.file: see Files and limits. For long documents, send async: true to get the parse_id right away, then poll the job: see Jobs and results.4
Extract fields
This request sends the
parse_id to Extract with a JSON Schema of the two fields you want. It waits for the extraction to finish and returns its extract_id.5
Read the results
This code reads the extraction’s values, then the parse’s Markdown.In the extraction, each field comes back as
{value, citation, confidence}. The citation names the parse elements the value was read from.In the parse, markdown is the document in reading order. elements holds the same content as text blocks, tables and figures, each with an id, a page and its position on the page. See Elements and bounding boxes.Some organizations delete each result the first time it’s read. There, finish every step on a parse before you read the parse’s result, as this guide does, or run them together in a pipeline.
Next steps
Parse
Add figures, refine passes, spreadsheet options, footnotes and chunks.
Extract
Write schemas, read citations, and choose the effort level.
Jobs and results
Run jobs async, poll their status, and learn how long results are kept.
Pipelines
Parse a document and run several steps on it in one call.