EdgazeDocsEdgaze Docs
BuilderBilling & RunsAPI ReferenceMCPLegal & TrustChangelog
DocumentationAPI Reference
Home
Getting started
API ReferenceAuthenticationQuickstartSDKs
Workflows
GETList WorkflowsGETGet WorkflowGETList Workflow VersionsPOSTAccept Workflow Update
Runs
POSTCreate RunGETList RunsGETGet RunPOSTCancel RunGETList Run Events
Guides
WebhooksErrors & Edge CasesBilling & Spend CapsStreaming & Real-timeVersioning & DeprecationOpenAPI specification

Platform status

Checking platform status
Theme
All documentation
API Reference

REST endpoints, authentication, and webhooks for running workflows from your backend.

Overview
Getting started
API ReferenceAuthenticationQuickstartSDKs
Workflows
GETList WorkflowsGETGet WorkflowGETList Workflow VersionsPOSTAccept Workflow Update
Runs
POSTCreate RunGETList RunsGETGet RunPOSTCancel RunGETList Run Events
Guides
WebhooksErrors & Edge CasesBilling & Spend CapsStreaming & Real-timeVersioning & DeprecationOpenAPI specification
Developer console

Platform status

Checking platform status
Guides

Errors & Edge Cases

Complete error catalog and async failure modes for production integrations.

Audience

Developers implementing retries and failure handling.

Complete error catalog and async failure modes for production integrations. Branch on error.code: messages are stable but intended for humans, not programmatic matching.

All errors use the envelope { "error": { "code": "…", "message": "…" } }. Some errors add an optional details field inside error. This includes unexpected server failures, which return 500 internal_error in the same envelope, so you never need to parse an HTML error page.

Request ids#

Every response carries an X-Request-Id header, on success and on error, including the run stream. When you report a problem to Edgaze, include it: it identifies the exact request in our logs. Log it next to your own request logs, and treat it as opaque.

Error catalog#

CodeHTTPWhen
unauthorized401Invalid, missing, revoked, or expired API key
account_restricted403The account that owns the key is restricted
insufficient_scope403Key lacks required scope
forbidden403Not entitled to the workflow or version (non-leaky)
creator_listings_paused403The creator's paid listings are paused; the run was not created
not_found404Unknown workflow or run, or cross-tenant run
method_not_allowed405The resource does not support the HTTP method
idempotency_conflict409Idempotency key reused with a different request
integration_connection_required409The workflow needs a third-party account the runner has not connected
invalid_request409Accept Workflow Update when the workflow has no active version
spend_cap_reached402API key spend cap exceeded (sync, before run created)
rate_limited429Too many POST /runs requests; up to 60 per minute per key are never limited. Wait Retry-After seconds and retry with the same idempotency key
invalid_json400Request body is not valid JSON
missing_workflow400POST /runs without a workflow id
invalid_inputs400Missing, unknown, conflicting, or incorrectly typed inputs
invalid_request400Invalid query parameter, pagination value, or request body (for example a malformed UUID), mismatched header and body idempotency keys, or an idempotency key over 255 characters
invalid_cursor400Invalid SSE Last-Event-ID or afterSequence
output_too_large413The run's output exceeds the maximum readable response size
internal_error500Unexpected server error (no internals leaked)
cancel_unavailable503Cancellation could not be delivered; retry the cancel shortly

Every endpoint documents 429 rate_limited, but only POST /runs returns it today. Handle it everywhere anyway: wait Retry-After seconds and retry, so your integration keeps working if reads are ever limited.

The OpenAPI document lists, on each error response, every code that status can carry for that endpoint, in x-error-codes. Branch on error.code, and treat a code you do not recognize like any other error with that HTTP status.

invalid_inputs responses may include error.details, an array of { "input", "message" } objects naming each problem field. Treat details as optional.

integration_connection_required responses include error.details, an array of the accounts to connect. Each entry has provider (display name), providerId, makesChanges (whether the workflow writes to that account), and connectUrl, a page where a person can connect it in Edgaze settings. No other code carries details. The OpenAPI document models this as one error schema per kind (InvalidInputsError, IntegrationConnectionRequiredError, PlainError), discriminated by code, plus UnknownError for any code added after the version of the document you generated from. Response schemas never forbid extra fields, so a client generated from the document keeps working when fields or codes are added.

Async failures after 202#

POST /runs may return 202 before funding checks finish. If the account lacks funds, polling later reports status: failed; there is no synchronous 402 for insufficient wallet balance. Spend-cap breaches return 402 immediately and do not include a run id.

The condition-by-condition contract for charging and retries is maintained in Create Run: funding and acceptance behavior.

Run model edge cases#

  • free: runnable via wallet path when entitled.
  • per_run: wallet or bundle charged at trigger.

Was this useful?

Your response helps us improve the documentation.

← WebhooksBilling & Spend Caps →
On this page
Request idsError catalogAsync failures after 202Run model edge cases
© 2026 Edge Platforms, Inc. All rights reserved.