Errors
Every failure is an RFC 9457 problem with a stable machine-readable code. Parse the code; show the detail.
Every non-2xx response from /api/v1 is an application/problem+json body in the same shape:
{
"type": "about:blank",
"title": "Bad Request",
"status": 400,
"detail": "ttlSeconds must be between 60 (one minute) and 86400 (24 hours), or omitted for a permanent endpoint.",
"code": "validation_failed",
"traceId": "00-4085a4896459004c…"
}Two fields carry the contract:
code: stable, machine-readable, never changes meaning within v1. Branch on this.detail: human-readable, may be reworded any time. Show it; don't parse it.
traceId correlates the response with our logs. Quote it in a support request and we can see
exactly what happened.
Codes
code | Typical status | Meaning |
|---|---|---|
unauthorized | 401 | No key, unknown key, or revoked key. |
agent_key_not_accepted | 403 | An Agent access key, which works only with the WebhookVault MCP server. Use a Developer access key for the API. |
api_access_disabled | 403 | Valid key, but API access is switched off for the workspace. Every plan includes it, so this follows an operator's change; contact support. |
feature_not_in_plan | 403 | The operation (e.g. bulk replay) isn't part of the plan. |
scope_required | 403 | The operation is outside the key's scopes; detail names the scope it needs. Setting or clearing a secret, changing an endpoint's provider or signature scheme, or changing a credentialed alert channel's settings also needs secrets. Nothing changed. |
workspace_role_required | 403 | The person who created the key may not do this in the workspace now, for example an admin who became a member. Nothing changed. |
agent_writes_paused | 403 | Agent access keys only (through the MCP server): an owner or admin paused agent changes for the workspace. Reads still work. Nothing changed. |
not_found | 404 | The endpoint or request doesn't exist in this workspace; a real id you don't own answers the same as no id at all. |
validation_failed | 400 | A body field or query parameter is out of bounds; detail says exactly which and what the bounds are. |
forwarding_disabled | 400 | Replay was asked of an endpoint with forwarding turned off. |
action_inactive | 400 | A replay named an action that is switched off. |
no_replay_actions | 400 | A replay named no action, and none of the endpoint's switched-on actions is included in replays. Name the actions with actionId or actionIds. |
already_delivered | 409 | A replay with guard=true would re-send to an action that already received the request or is still delivering it. Nothing was sent; actions lists each earlier delivery. Repeat with allowDuplicates=true to send anyway. See safe replays. |
endpoint_inactive | 400 | A replay, single or bulk, was asked of an endpoint that is switched off, by you or by a plan change. Nothing was sent or queued; switch the endpoint back on to replay. |
limit_reached | 409 | A plan limit is already used: active endpoints, actions on an endpoint, or rules on an action. Nothing was created, switched on or restored. Switch something off, delete something, or upgrade. |
version_mismatch | 412 | The If-Match you sent (or the version an approval was given for) is no longer current: someone changed it since. Nothing changed; currentEtag and the ETag header carry the new version. See safe changes. |
reach_changed | 409 | An approved change now reaches more than the person approved: something was linked to it after the yes. Nothing changed; reach shows what it reaches now. Send the request without Approval-Id to ask again. See safe changes. |
idempotency_key_reused | 422 | This Idempotency-Key was already used for a different request. Use a new key for a new request. |
idempotency_in_progress | 409 | The first request with this Idempotency-Key is still running. Wait a moment and send it again. |
second_factor_required | 403 | The operation needs the approval of the person the key acts for, and their account has neither a passkey nor two-factor authentication, so it cannot be approved. Nothing changed. |
approval_not_found | 404 | No approval with this Approval-Id belongs to this key. |
approval_pending | 409 | The person has not decided yet. Wait, then send it again. |
approval_declined | 409 | The person declined. Do not send it again. |
approval_expired | 409 | The approval expired before it was used. Send the request without Approval-Id to ask again. |
approval_used | 409 | The approval was already used; an approval runs one request once. |
approval_mismatch | 422 | The approval was given for a different request. Send exactly the request that asked for it. |
in_use | 409 | A connection or saved request is still used (by a saved request or an action). Remove that first. Nothing changed. |
name_taken | 409 | A connection or saved request with this name already exists in the workspace. |
nothing_to_purge | 409 | Nothing in the recycle bin matches the purge request. |
billing_not_available | 403 | A key asked to add a billing contact. Billing is managed in the app, never through the API. |
preview_failed | 400 | A notify message could not be rendered; detail says why. |
unknown_sample | 400 | The endpoint's provider has no sample for that event. |
endpoint_off | 400 | A test request was asked of an endpoint that is switched off. |
endpoint_expired | 400 | A test request was asked of a temporary endpoint that has expired. |
test_rate_limited | 429 | Test requests are limited to a few a minute per endpoint; honor Retry-After. |
capture_rate_limited | 429 | The endpoint is at its plan's capture rate for this minute, so the test would be refused like a sender; honor Retry-After. |
captures_paused | 503 | Capturing is paused for maintenance; retry shortly. |
rate_limited | 429 | Per-key budget spent; honor Retry-After. |
write_budget_spent | 429 | Agent access keys only (through the MCP server): the key's hourly limit for changes or deletes is used up; honor Retry-After. Nothing changed. |
request_invalid | 400 | The request couldn't be read: malformed JSON, the wrong content type, or a query parameter of the wrong type (guard=yes, an actionId that is not a UUID). errors names the parameter. |
internal_error | 500 | Our fault. The traceId is already in our logs. |
An already_delivered body adds what was found (type, title and traceId as above are left out
here):
{
"status": 409,
"detail": "Not sent: this action already received this request, or is still delivering it.",
"code": "already_delivered",
"actions": [
{
"actionId": "0198f0c2-…",
"name": "Back office",
"kind": "forward",
"target": "https://api.example.com/hooks",
"state": "delivered",
"lastDeliveredAt": "2026-10-17T09:12:03Z",
"statusCode": 200,
"responseCheck": "passed",
"attempt": null,
"nextAttemptAt": null,
"jobId": 81234,
"requestId": 5120,
"previousTarget": null
}
],
"toProceed": "Check whether the receiver ignores a repeat, for example by de-duplicating on X-WebhookVault-Request-Id. To send anyway, repeat the call with allowDuplicates=true."
}A delivery whose response missed the action's response check
is not an API error: the attempt reads Failed, its responseCheck is failed, and its error
starts with Response check failed:. The MCP server classes it as response_check.
Handling pattern
RESP=$(curl -s -w '\n%{http_code}' … )
STATUS=$(echo "$RESP" | tail -1)
BODY=$(echo "$RESP" | head --1)
case "$STATUS" in
2*) ;; # success
429) sleep "$(echo "$BODY" | jq -r '.detail' | grep -o '[0-9]*')" ;; # or read Retry-After
*) echo "API error: $(echo "$BODY" | jq -r '.code + ": " + .detail')" >&2; exit 1 ;;
esacWhere next?
- Rate limits: the 429 contract in full
- Authentication: the 401/403 family