The /process API is a one-call ingestion pipeline. You send files and an optional list of actions in one multipart request. CloudRaker parses each file and runs the actions. It holds the results for a TTL you choose, then purges everything. You get a processing id to poll. You can also receive signed webhooks as each event happens.
This is the fastest way to turn documents into structured data from your backend. You do not set up spaces or manage files.
The flow
Start a pipeline
POST /processwith your files and options.Poll for status and results
GET /process/{id}untilstatusisdone(orfailed/expired).(Optional) purge early
DELETE /process/{id}cancels in-flight work and deletes everything now. Or let it expire.
Start a pipeline
POST /process takes multipart/form-data: one part named options (JSON) plus one part per file you declare.
The options part
{
"files": [
{ "field": "invoice", "processingKind": "doc-auto" }
],
"actions": ["<installedActionId or slug>"], // optional; default []
"callbackUrl": "https://example.com/webhooks/rakerone", // optional
"durationSeconds": 86400 // optional TTL; default 86400 (24h), max 604800 (7d)
}files[]— one entry per file.fieldmust match the name of a multipart part that carries the file’s bytes.processingKindis optional.actions[]— the installed actions to run against the ingested files. Each entry is an installed action’s id or its per-organization slug. The two are interchangeable everywhere the API takes an installed action. Optional; defaults to none.callbackUrl— a receiver for signed webhook events. Optional. Usehttps. Deliveries never follow a redirect, so anhttpURL that redirects tohttpsfails instead of arriving.durationSeconds— the time results live before auto-purge. Default 24h, max 7 days.
processingKind is one of:
| Value | For |
|---|---|
doc-simple |
Text-native documents, fastest path |
doc-ocr |
Scanned or image documents that need OCR |
doc-auto |
CloudRaker chooses between simple and OCR |
audio-transcribe |
Audio → transcript |
audio-transcribe-and-diarize |
Audio → transcript with speaker labels |
Request
curl -X POST https://api.cloudraker.com/process \
-H "Authorization: Bearer $RAKERONE_API_KEY" \
-F 'options={"files":[{"field":"invoice","processingKind":"doc-auto"}]};type=application/json' \
-F 'invoice=@./invoice.pdf'Response — 201
{
"processingId": "…",
"expiresAt": "2026-07-21T00:00:00.000Z",
"statusUrl": "/process/<processingId>"
}Pipeline order: CloudRaker ingests and parses each file. It dispatches the declared actions and collects the results. It emits webhooks, holds everything until the TTL, then purges it.
Possible errors: 400 (malformed multipart or manifest), 403 (caller is not an org admin and not an org API key).
Poll for status and results
curl -X GET https://api.cloudraker.com/process/id \
-H "Authorization: Bearer $CLOUDRAKER_API_KEY"Query parameters
include— comma-separated list ofcontent,results,evidence. The API inlines these heavier payloads only when you request them.format—json(default) ormarkdown.
ProcessStatus response
{
"processingId": "…",
"status": "preprocessing | running | done | failed | expired",
"expiresAt": "…",
"files": [
{ "fileId": "…", "fileName": "invoice.pdf", "processingKind": null,
"status": "…", "error": null, "content": null }
],
"actions": [
{ "runId": null, "installedActionId": "…", "status": "…", "error": null, "result": null }
]
}content (per file), results (per action), and evidence appear only when you request them with include.
Action results
actions[].result arrives with include=results, once that action’s status is done. Its shape depends on what the action produces.
Actions that extract data (extract) return the grounded result. docs[] holds one entry per source file, data holds the extracted fields, and evidence cites them. Citations are heavy, so they appear only with include=results,evidence.
fieldKeys gives the fields in the order their author set them. Display them in that order: data and schema.properties are returned in it too. A nested object, and the item schema of an array, carry their own order in x-order beside their properties.
{
"version": 1,
"unit": "per_document",
"fieldKeys": ["total"],
"docs": [
{ "id": "file_…", "name": "invoice.pdf", "status": "done",
"data": { "total": "1240.00" },
"evidence": { "total": [{ "fileId": "file_…", "page": 2, "text": "1,240.00" }] } }
]
}Actions that produce a file (redact, fill, sign, generate, split) return output and files. output is the action’s own report. files resolves the ids in output.documentIds to download links valid about one hour — fetch them before they expire, or poll again for fresh ones.
{
"output": { "documentIds": ["file_…"], "summary": { "PERSON": 3 }, "skipped": 0 },
"files": [
{ "id": "file_…", "name": "consult-redacted.pdf", "url": "https://cdn.cloudraker.com/…" }
]
}Actions that return neither — classify, connector-call — carry output alone, with no files.
When there is no result
| Field | Meaning |
|---|---|
result present |
The action produced this result. |
result: null |
The action produced no result. A fact about the run, not a failure. |
resultError |
The result could not be read — the platform, not your call. Poll again; the run itself is unaffected. |
result: null and resultError are distinct. Do not treat a missing result as an error, and do not treat a read failure as an empty result.
Poll responses
| Status | Body | Meaning |
|---|---|---|
200 |
ProcessStatus |
Found. Poll until status is done, failed, or expired. |
404 |
{"error":"not_found"} |
Unknown id, or hard-wiped after the grace window |
410 |
{"error":"expired"} |
Purged, still inside the post-TTL grace window |
Purge early
curl -X DELETE https://api.cloudraker.com/process/id \
-H "Authorization: Bearer $CLOUDRAKER_API_KEY"Cancels in-flight work immediately. Deletes files, runs, and stored results. Returns 204.
TTL and lifecycle
A pipeline lives until expiresAt (durationSeconds from creation; default 24h, max 7 days). At expiry, CloudRaker cancels runs, purges outputs, and deletes the files. It emits a processing.expired webhook. The id then answers 410 for a short grace window (~24h), then 404 after the hard wipe. Fetch everything you need before expiresAt, or set a longer TTL at creation.