POST/api/v2/operations/{domain}/{verb}
Canonical durable managed invocation boundary. Inline JSON request bodies have a 4 MiB (4194304-byte) maximum, measured on the raw request body (base64 inflates binary by about a third, so inline documents are limited to roughly 3 MiB before encoding); larger bodies return 413 ERR_PAYLOAD_TOO_LARGE. Self-hosted deployments allow inline bodies up to 10 MiB (10485760 bytes). The official SDK keeps canonical envelopes through 768 KiB (786432 bytes) inline and automatically stages larger envelopes through the 192 MiB (201326592-byte) staged-input boundary. The final common operation envelope is read from the execution result resource.
Headers
Authorizationstring requiredBearer pj_live_… Raw keys are shown only when created. The
x-api-keyheader is an alternative transport.Key scope:
execution:submit.Idempotency-Keystring required1-255 visible ASCII characters. Reuse with an identical immutable request returns the original execution with reused=true; reuse with a different request hash returns
409 IDEMPOTENCY_CONFLICT.
Path parameters
domainstring requiredverbstring requiredTechnical verb plus optional slash-separated qualifier segments.
Body parameters
Supply either an inline invocation request body of at most 4 MiB (4194304 bytes, measured on the raw request body) or a staged_input reference to a canonical envelope through 192 MiB (201326592 bytes). The official SDK automatically stages canonical envelopes larger than 768 KiB (786432 bytes).
inputany one ofstaged_inputobject one ofFinalization reference for an already uploaded immutable CanonicalOperationExecutionEnvelope.
optionsobject optionalDescriptor-defined operation options. Native PPTX, DOCX, XLSX, and PDF render operations also accept
preflightPolicyas a managed execution option.options.preflightPolicyobject optionalCaller render-score floor. The managed worker applies the stricter of this value and the execution's frozen delivery-policy value.
Response
202 Accepted Operation accepted for durable asynchronous execution.
Headers
Locationstring requiredRelative execution status URL.
Body
idstring (uuid) requiredstatusenum requiredqueuedrunningsucceededfailedblockedcancellingcancelledstatus_urlstring requiredresult_urlstring requiredreusedboolean required
Errors
| Status | When |
|---|---|
400 | Invalid request. |
401 | Missing, invalid, unentitled, or no-longer-accepted API key. |
403 | The key lacks the required execution scope. |
404 | The organization/environment-scoped resource was not found. |
409 | The same environment-bound idempotency key was previously used for a different immutable request hash. |
413 | The request exceeds its published byte boundary. |
429 | Finite rate limit or durable hosted quota refused the request. |
503 | Launch control is held or execution authority is unavailable. |
curl -X POST \
-H "Authorization: Bearer pj_live_YOUR_KEY" \
-H "Idempotency-Key: YOUR_UNIQUE_REQUEST_KEY" \
-H "Content-Type: application/json" \
-d '{"input":"BASE64_DOCUMENT_BYTES"}' \
https://runstamp.com/api/v2/operations/pdf/validateimport { managed, Runstamp } from "@runstamp/sdk";
const runstamp = new Runstamp({
transport: managed({ apiKey: process.env.RUNSTAMP_API_KEY! }),
});
const result = await runstamp.run("pdf.validate", pdfBytes);Response 202 Accepted
{
"id": "8f4fa0a3-f907-41f5-babe-5762f974cb83",
"status": "queued",
"status_url": "/api/v2/executions/8f4fa0a3-f907-41f5-babe-5762f974cb83",
"result_url": "/api/v2/executions/8f4fa0a3-f907-41f5-babe-5762f974cb83/result",
"reused": false
}