Postman collection
Updated
Download#
Two files, from the client portal:
DocXtract_API.postman_collection.json— the requestsDocXtract_API.postman_environment.json—base_url,api_key,job_id
Both work in Postman and Bruno.
Setup#
- Import → drop both JSON files in
- Select the DocXtract API — Production environment
- Set
api_keyto your key from Settings (it is marked as a secret variable) - Send Health check — it needs no auth, so it confirms connectivity on its own
- Send List document models — confirms your key works, and costs no credits
- On Extract structured data from a document, attach a file to the
fileform field and send
Steps 4 and 5 are free. Do them before spending a credit on an extraction.
What is included#
Six requests in three folders:
| Folder | Requests |
|---|---|
| Extraction | Extract structured data from a document |
| Multi-page | Process one chunk, Collect the stitched result |
| Discovery | List document models, Service health, Verify an API key |
Each carries the documented response codes so you can see the error shapes without triggering them.
Generated from the spec#
The collection is generated from docs/openapi.yaml, the same contract that drives the interactive API reference. It cannot drift from the documented API.
Note
Do not hand-edit the collection and expect changes to survive. It is regenerated
from the spec.
Multi-page requests#
The job_id environment variable is shared by the multi-page requests. A real run looks like:
- Send Extract with a PDF over 3 pages → you get
202with a manifest, not a result - Copy a chunk
job_idfromdata[]into thejob_idvariable → send Process one chunk - Repeat for every chunk
- Set
job_idto the parentjob_idfrom the manifest root → send Collect
Warning
The manifest contains two kinds of id.
process takes a chunk job id
from data[]; result takes the parent job id from the root. Mixing them up returns
404 job_not_found.Doing this by hand is instructive but tedious — it is exactly what the SDKs automate.
When to use something else#
| Instead use | When |
|---|---|
| Test API page | You want to see extraction quality on your own documents, with a copy-paste snippet |
| Interactive API reference | You want to read the contract while trying calls |
| An SDK | You are past exploring and writing real code |
Something wrong or missing on this page? Tell us.