Inbound Webhooks (Ingest)
The endpoint a project calls to send a signed payload to an inbound webhook, with every response it can return.
Open a draft
/api/inbound-webhooks/{id}/draftsStarts a multi-step submission. Send each step with PATCH, then submit the draft. The draft expires after INBOUND_WEBHOOK_DRAFT_TTL_H hours (24 by default). Only for webhooks whose schema has steps. The request has no body, so the signature covers an empty string.
Authentication: Project API key (X-API-Key header)
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
X-MCID-Signature | header | string | no | t=<unix seconds>,v1=<hex hmac-sha256 of "t.<raw body>"> |
Responses
| Status | Description | Body |
|---|---|---|
201 | The draft id and when it expires. | |
400 | The webhook has no steps (400), or the signature is bad (401). | |
403 | Origin not in the allowlist. | |
404 | No such webhook for this project. | |
409 | Signature replayed. | |
410 | Webhook is inactive. |
Open in Swagger (opens in a new tab)
Submit a draft
/api/inbound-webhooks/{id}/drafts/{draftId}/submitChecks everything saved so far as one payload, with conditions resolved across steps, and turns the draft into a submission. A step never sent fails its required fields. A draft can be submitted once. The request has no body, so the signature covers an empty string.
Authentication: Project API key (X-API-Key header)
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
draftId | path | string | yes | |
X-MCID-Signature | header | string | no | t=<unix seconds>,v1=<hex hmac-sha256 of "t.<raw body>"> |
Responses
| Status | Description | Body |
|---|---|---|
201 | Accepted. | |
403 | Origin not in the allowlist. | |
404 | No such webhook or draft. | |
409 | The draft was already submitted, or the signature replayed. | |
410 | Webhook inactive, or the draft expired. | |
422 | The accumulated payload failed schema validation. |
Open in Swagger (opens in a new tab)
Save one step of a draft
/api/inbound-webhooks/{id}/drafts/{draftId}/{stepKey}Checks only this step, with its conditions read against the steps already saved, and stores it. Sending a step again replaces it. Every error in the step is returned at once.
Authentication: Project API key (X-API-Key header)
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
draftId | path | string | yes | |
stepKey | path | string | yes | |
X-MCID-Signature | header | string | no | t=<unix seconds>,v1=<hex hmac-sha256 of "t.<raw body>"> |
Responses
| Status | Description | Body |
|---|---|---|
200 | The steps saved so far. | |
403 | Origin not in the allowlist. | |
404 | No such webhook or draft. | |
409 | The draft was already submitted, or the signature replayed. | |
410 | Webhook inactive, or the draft expired. | |
422 | The step failed schema validation, or the step is unknown. |
Open in Swagger (opens in a new tab)
Upload a file
/api/inbound-webhooks/{id}/filesPhase one of a file submission. Send one file as multipart/form-data; the response carries a fileId to reference from a file field in /submit or in a draft step. The type is read from the content, not from the Content-Type the sender gives, and must be accepted by one of the webhook's file fields. The upload expires after INBOUND_WEBHOOK_FILE_TTL_H hours (1 by default) unless a submission uses it. The multipart body is not signed, so the signature covers an empty string.
Authentication: Project API key (X-API-Key header)
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
X-MCID-Signature | header | string | no | t=<unix seconds>,v1=<hex hmac-sha256 of "t."> |
Responses
| Status | Description | Body |
|---|---|---|
201 | The fileId, sha256, size, detected mime and expiry. | |
400 | Not multipart, no file, several files, an empty file, or the webhook has no file fields (400); bad signature (401). | |
403 | Origin not in the allowlist. | |
404 | No such webhook for this project. | |
409 | Signature replayed. | |
410 | Webhook is inactive. | |
413 | Larger than the biggest maxSizeBytes of the webhook. | |
415 | The content is not a type the webhook accepts. |
Open in Swagger (opens in a new tab)
Submit a payload
/api/inbound-webhooks/{id}/submitValidated against the webhook schema. Every field error is returned at once.
Authentication: Project API key (X-API-Key header)
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
X-MCID-Signature | header | string | no | t=<unix seconds>,v1=<hex hmac-sha256 of "t.<raw body>"> |
Responses
| Status | Description | Body |
|---|---|---|
201 | Accepted. | |
400 | Bad signature (401) or rate limited (429). | |
403 | Origin not in the allowlist. | |
404 | No such webhook for this project. | |
409 | Signature replayed. | |
410 | Webhook is inactive. | |
422 | Payload failed schema validation. |
Open in Swagger (opens in a new tab)
Source: apps/api/openapi.json.