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

codeTypical statusMeaning
unauthorized401No key, unknown key, or revoked key.
agent_key_not_accepted403An Agent access key, which works only with the WebhookVault MCP server. Use a Developer access key for the API.
api_access_disabled403Valid 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_plan403The operation (e.g. bulk replay) isn't part of the plan.
scope_required403The 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_required403The 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_paused403Agent access keys only (through the MCP server): an owner or admin paused agent changes for the workspace. Reads still work. Nothing changed.
not_found404The 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_failed400A body field or query parameter is out of bounds; detail says exactly which and what the bounds are.
forwarding_disabled400Replay was asked of an endpoint with forwarding turned off.
action_inactive400A replay named an action that is switched off.
no_replay_actions400A 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_delivered409A 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_inactive400A 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_reached409A 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_mismatch412The 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_changed409An 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_reused422This Idempotency-Key was already used for a different request. Use a new key for a new request.
idempotency_in_progress409The first request with this Idempotency-Key is still running. Wait a moment and send it again.
second_factor_required403The 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_found404No approval with this Approval-Id belongs to this key.
approval_pending409The person has not decided yet. Wait, then send it again.
approval_declined409The person declined. Do not send it again.
approval_expired409The approval expired before it was used. Send the request without Approval-Id to ask again.
approval_used409The approval was already used; an approval runs one request once.
approval_mismatch422The approval was given for a different request. Send exactly the request that asked for it.
in_use409A connection or saved request is still used (by a saved request or an action). Remove that first. Nothing changed.
name_taken409A connection or saved request with this name already exists in the workspace.
nothing_to_purge409Nothing in the recycle bin matches the purge request.
billing_not_available403A key asked to add a billing contact. Billing is managed in the app, never through the API.
preview_failed400A notify message could not be rendered; detail says why.
unknown_sample400The endpoint's provider has no sample for that event.
endpoint_off400A test request was asked of an endpoint that is switched off.
endpoint_expired400A test request was asked of a temporary endpoint that has expired.
test_rate_limited429Test requests are limited to a few a minute per endpoint; honor Retry-After.
capture_rate_limited429The endpoint is at its plan's capture rate for this minute, so the test would be refused like a sender; honor Retry-After.
captures_paused503Capturing is paused for maintenance; retry shortly.
rate_limited429Per-key budget spent; honor Retry-After.
write_budget_spent429Agent 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_invalid400The 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_error500Our 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 ;;
esac

Where next?

On this page