API referenceConversation Autopilot

Cancel a still-pending verification wait

Cancels a wait that is still pending, transitioning it to the terminal canceled status and stamping canceledAt; the response is the updated wait.

Endpoint
DELETE https://api.dairo.app/v1/inboxes/{inbox}/verification-waits/{waitId}

Cancels a wait that is still pending, transitioning it to the terminal canceled status and stamping canceledAt; the response is the updated wait. Cancel is distinct from a deadline lapse — a canceled wait never reads expired, and no verification.resolved or verification.expired event is emitted for it. Only a pending wait can be canceled: if the wait already resolved, expired, or was canceled, the call returns 409. A waitId that does not belong to the named {inbox} returns 404.

Scope: inboxes:write. Send the API key as a bearer token; Scopes lists what each one reaches.

Request

cURL
curl -X DELETE "https://api.dairo.app/v1/inboxes/support/verification-waits/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer $DAIRO_API_KEY"

Path parameters

NameTypeRequiredDescription
inboxstringyesInbox UUID or full address (e.g. agent@dairo.app).
waitIdstring (uuid)yesVerification wait id returned by the register call.

Response

200 Success. Body: application/json, VerificationWait.

FieldTypeRequiredDescription
waitIdstring (uuid)yes
inboxIdstring (uuid)yes
agentIdstring (uuid) or nullnoThe Agent Passport that registered this wait, when the API key was agent-bound.
status"pending", "resolved", "expired"yes
fromHintstring or nullno
instructionstring or nullnoThe natural-language matcher instruction this wait was registered with.
resultstring or nullnoThe value the AI matcher extracted per the instruction (present once resolved) — a code, a link, or a quoted line.
fromstring or nullnoThe From address of the message that resolved the wait.
messageIdstring (uuid) or nullnoThe inbound message that resolved the wait.
idempotencyKeystring or nullno
expiresAtstring (date-time)yes
createdAtstring (date-time)yes
resolvedAtstring (date-time) or nullno
expiredAtstring (date-time) or nullno
200
{
  "waitId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "inboxId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "agentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "pending",
  "fromHint": null,
  "instruction": null,
  "result": null,
  "from": null,
  "messageId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "idempotencyKey": null,
  "expiresAt": "2026-10-19T09:30:00Z",
  "createdAt": "2026-10-19T09:30:00Z",
  "resolvedAt": "2026-10-19T09:30:00Z",
  "expiredAt": "2026-10-19T09:30:00Z"
}

Errors

Every error has the same body, {"error": {"type", "code", "message", "param"}}; branch on code. Errors lists every code.

StatusMeaning
400The request is malformed or a value is invalid (invalid_request, invalid_domain, idempotency_key_mismatch).
401The API key is missing or invalid.
403The key lacks the scope this endpoint needs (scope_missing) or may not do this (not_permitted).
404No such resource in this account (resource_not_found).
409The resource already exists or its state does not allow this (duplicate_resource or a condition-specific code).
422The request is well-formed but a field failed validation (validation_failed).
429Rate limit, plan limit, budget or spend cap reached (rate_limited, plan_limit_reached, budget_exceeded, spend_cap_reached).
500An unexpected error; retry with backoff, then contact support (internal_error).

On this page