API usage and limits
Authenticate requests, handle limits, retry safely, and read usage receipts.
Use a workspace API key with the permissions your integration needs. The REST API accepts the tool input at POST /api/v1/operations/{tool}. Remote MCP connects at /mcp with a scoped API key or OAuth. See REST authentication and Connect an MCP client.
Retrying a request
Use a new idempotency key for each new execution. When a response is uncertain, check job history, then retry with the original key and identical input. A matching retry returns the original operation. The API rejects reuse of the same key with different input.
Credits and receipts
An estimate shows the maximum credits you authorize. Credit amounts support a precision of 0.001 credit. A job can use pages, searches, browser time, OCR, screenshots, and model inference. See Pricing and credits for the rates.
Check Usage for itemized charges. Partial results can include billable work. A failed job without usable output uses no credits. If acceptance is uncertain, check the original operation before submitting another request.
Rate limits and errors
Basic API calls, advanced jobs, browser starts, browser commands, and status reads have separate plan limits. A job can wait in the queue for up to 36 hours.
- 400 — Review the request parameters or credit limit.
- 401 — Sign in again or check the API key.
- 403 — Check the workspace role, tool permissions, or plan.
- 409 — Check the existing operation or idempotency key.
- 429 — Wait for the indicated retry interval or for an active slot to open.
- 502, 503, or 504 — Check the original job status. Reuse the same key if you retry.
An HTTP success can contain partial results. Inspect status, warnings, and coverage. For large artifacts, use bounded reads and compare the finished download with its recorded checksum.
See Credits and receipts for developers for how to interpret usage records.
Maximum credit allowance
For Agent and workflow starts, pass a positive integer maxCredits in the request alongside the other start arguments. For document parsing, set commercialOptions.maxDocumentPages to a bounded page or sheet count, or pass a positive maxCredits. The REST operations endpoint accepts maxCredits alongside the tool arguments and removes it before forwarding the engine payload. Never approve a higher maximum without the customer’s authorization. A maximum is not a final charge.
Recurring execution
For hosted set_watch_schedule or workflow schedule enablement, include maxCreditsPerRun, cycleCredits and authorizationId (UUID), in addition to the existing schedule inputs. These are an explicit per-run ceiling and total allowance for up to 30 days, approved by a workspace owner or admin. Reuse the same authorization ID only for an identical retry. Disablement needs no new authorization.
The console issues a short-lived, signed credit estimate bound to the authorized workspace and normalized inputs. Changed inputs, expired estimates and altered authorization are rejected. Direct API/MCP requests authorize their maximum explicitly and do not require a browser estimate. For recurring execution, a positive per-run and total budget is required when enabling, but disabling does not require a new budget.

