Workflow trigger delivery
Inbound-email workflow trigger. A mail forwarder POSTs a parsed email as JSON. Path: POST /api/workflows/triggers/email/{token}. A migrated trigger answers 410 past its grace window and carries a Deprecation response header.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”The generic webhook / trigger delivery body: an arbitrary JSON object the
caller posts. SupaCloud does not impose a fixed shape — the whole object is
handed to the workflow run as the trigger context (SC_TRIGGER_CONTEXT).
This is an honest record-of-unknown, NOT a fake structure: the runtime never
deserializes it into named fields.
object
Arbitrary trigger payload fields, forwarded verbatim to the run as
SC_TRIGGER_CONTEXT. Flattened so the component IS the open object the
caller posts (not a wrapper); the runtime never deserializes named fields.
Example generated
{ "additionalProperty": "example"}Responses
Section titled “Responses”Delivery accepted (fired or skipped).
The standard webhook ack body returned by SupaCloud’s own trigger receivers:
{ "status": "fired" | "skipped" | "gone", "run_id": "<uuid>"?, "reason": "<text>"? }.
A receiver acks (200) even on a filtered-out delivery so the sender does not
disable the hook; run_id is present only when a run was started.
object
Why a delivery was skipped or is gone — present for skipped / gone.
The started workflow run id — present only when status = "fired".
fired (a run started), skipped (authenticated but filtered out) or
gone (a migrated email trigger past its grace window).
Example generated
{ "reason": "example", "run_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "status": "example"}Malformed body (non-JSON / rejected content-type).
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}Invalid or missing HMAC signature.
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}Forbidden (issue-debate fail-closed gate / disabled automation switch).
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}Unknown trigger token.
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}Email trigger migrated past its grace window (email receiver only).
The standard webhook ack body returned by SupaCloud’s own trigger receivers:
{ "status": "fired" | "skipped" | "gone", "run_id": "<uuid>"?, "reason": "<text>"? }.
A receiver acks (200) even on a filtered-out delivery so the sender does not
disable the hook; run_id is present only when a run was started.
object
Why a delivery was skipped or is gone — present for skipped / gone.
The started workflow run id — present only when status = "fired".
fired (a run started), skipped (authenticated but filtered out) or
gone (a migrated email trigger past its grace window).
Example generated
{ "reason": "example", "run_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "status": "example"}