Parse
POST /v1/parse takes one document and returns readable markdown plus a structured JSON representation with layout and page information. No schema, no configuration — use it when you want the document’s content, not specific fields out of it.
How it works
- You send a file — a URL, or the id of a file you already have.
- CloudRaker fetches the bytes and reads the document: born-digital PDFs directly, scans through OCR, office files through conversion, and audio through transcription.
- The call holds until parsing finishes — up to
?wait=seconds (60 by default, 120 max). Finished in time gives200with download URLs; otherwise202with a run id to poll. - The run and its files expire on their own (
ttl, 24 hours by default).
Extraction parses too, so you don’t need to call this first — POST /v1/extract does it as part of the run.
Quickstart
The sample below uses a blank IRS Form W-9 as a public, stable test document, so the call works with no local files.
The TypeScript and Python samples are plain HTTP so they run with nothing installed. This endpoint is also a top-level method on both SDKs as of 0.3.0 — client.parse(…); that page has a full worked example.
Example response
Key fields
output appears only once status is processed. The download URLs are short-lived; fetch the content rather than storing the URL.
Reuse the returned file id (files[0].id) in later calls — pass {"file": {"id": "<file id>"}} to extract and the document is not fetched or parsed again.
Configuration
processing on the file ref picks how the document is read:
Sync vs async
Identical to extract: synchronous by default, ?wait= between 0 and 120 seconds, and a 202 handle instead of a timeout error when the cap is reached.
Long audio and large scanned documents will normally come back as 202 — pass ?wait=0 and poll or use a webhook for those.
Save as an action
Parsing has no configuration to save, so there’s nothing to turn into an action — it doesn’t appear in GET /v1/actions/catalog either. The saved-configuration path applies to extract, redact, fill, and sign.