Skip to main content
POST
Retry a failed delivery
Send a failed delivery again, once, and get the new attempt back — or one nobody knows landed, once you have checked. Fix your endpoint (or the tool’s address), then retry the deliveries it refused — no new test, no copy-paste. A retry goes to where the tool points now, which is not always where the delivery went. Read Get Delivery first: request.destination is where it went, retry_target.destination is where a retry will go, and retry_target.changed says whether they differ. Required scope: tools:update — the scope that already sends a tool’s request on demand (Test Tool). No new scope, so a key that can test a tool can retry its deliveries.
The body is optional: none, {}, or {"acknowledge_unknown": true}.
201 with the new delivery, in the shape Get Delivery returns (its bodies too only if the key also holds calls:read). Its status says whether your endpoint accepted it this time — unknown again if it did not answer in time:

What is sent

  • The body the delivery stored — exactly what the original attempt sent, not rebuilt.
  • To where the sender points now — the tool’s current URL, method, headers and timeout (or, for an agent not yet on the workflow engine, the agent’s webhook). The new delivery records that address and the tool revision it was sent with, so the original and the retry each say where they went.
  • What this means for your agents. Editing a tool makes a new revision. A retry uses it at once. An agent’s step moves to it too, once the change is promoted, when the step follows the tool’s current revision — the default; a step pinned to an older revision keeps sending there until you change it. List Tool Bindings shows which agents follow and which are pinned.
  • Named as a resend. It carries X-Webhook-Delivery-Id with the first delivery’s id (the same on every retry of it), X-Webhook-Retry-Of with the one you retried, and X-Webhook-Delivery-Attempt counted across them: a retry of a delivery sent once is attempt 2, and its attempt_count reads 2. An endpoint that keys on X-Webhook-Delivery-Id can skip a request it already acted on; the retry’s chain_root_id is that id. Get Delivery lists every header, and shows the values the platform sent (request.platform_headers).
  • Once. One attempt, no automatic retries.
  • A retried tool test is still a test: it carries X-Webhook-Test: true and reads source: "test" — and so does a retry of anything sent on a dashboard test call.
  • Not for an archived tool. A delivery whose tool is archived is 404 WORKFLOW_TOOL_ARCHIVED (the status a test of an archived tool answers), and nothing is sent; restore the tool first. tool_archived on Get Delivery says so beforehand.

Linked, and only once

The retry is a new delivery: its retry_of is the one you retried, and that one’s retried_by now points at it, on Get Delivery and in the dashboard. A delivery is retried at most once, so two requests — even two racing each other — send it once; the second is 409 DELIVERY_ALREADY_RETRIED with retried_by in the body. If the retry fails too, retry the retry.

Errors

Every refusal sends nothing. In the dashboard the same retry is Send again in a delivery’s drawer (Tools → Deliveries), on any delivery that was not accepted. On one whose outcome is unknown it asks first.

Authorizations

Authorization
string
header
required

Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys. No key is 401 MISSING_KEY; a key that is not one of ours, or is revoked, is 401 INVALID_KEY; an expired one is 401 EXPIRED_KEY. A valid key without the scope an operation needs is 403 INSUFFICIENT_SCOPE on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's RATE_LIMIT asks for what is left of the minute, a route's daily cap (RATE_LIMITED) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is 404 ROUTE_NOT_FOUND, and a method a served path does not take is 405 METHOD_NOT_ALLOWED with an Allow header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (POST /calls/ is POST /calls) and refused where it can (GET /calls/). A doubled slash inside a path is merged into one before the request reaches the API (GET //calls is GET /calls).

Path Parameters

id
string<uuid>
required

Body

application/json
acknowledge_unknown
boolean

Send an unknown delivery again, knowing the endpoint may already have acted on it. Changes nothing for a failed delivery.

Response

The retry was sent. The body is the new delivery; its status says whether the endpoint accepted it this time.

One delivery, as GET /deliveries/{id} and POST /deliveries/{id}/retry return it: the list's row, field for field, plus what it sent and what came back, its retry link, whether it can be retried, where it went and where a retry would go now. Every configured header value of the sender is replaced by [REDACTED] in either body before it leaves the database, and so are the sender's query string and each of its values of six characters or more: a value of six characters or more wherever it appears (as a value, inside a string, or as a key); a shorter header value only where it is the whole body or a whole JSON string in it. Query values shorter than six characters are never withheld. An address is returned without its query string, fragment or credentials.

kind
enum<string>
required

Always delivery. Carried so a reader parsing a call's timeline and a reader paging this list can use one branch, not two.

Available options:
delivery
id
string<uuid>
required
call_id
string<uuid> | null
required

The call this delivery was about. Read it with GET /calls/{id}.

tool_id
string<uuid> | null
required

The tool whose step sent it — the id ?tool_id= filters on. Null for an agent not yet on the workflow engine, which sends in its own name (see agent_id).

agent_id
string<uuid> | null
required

The agent: the one that sent it in its own name, or, for a tool's step, the agent whose call it happened on — the id ?agent_id= filters on. Null for a tool test, which happens on no call.

at
string<date-time>
required

When the delivery settled — or, on a pending row, when it was recorded.

retry_of
string<uuid> | null
required

The delivery this one re-sent, when it is a retry (POST /deliveries/{id}/retry).

retried_by
string<uuid> | null
required

The retry that re-sent this delivery, if one was made. A delivery is retried at most once, so a failure with retried_by set is refused 409 DELIVERY_ALREADY_RETRIED — skip it, and read (or retry) the retry instead.

event
string
required

The event that triggered it, spelled as the trigger authored it; call.preparing for a before-call step's request. A rehearsal's event can carry a test: prefix — branch on source, not on the spelling.

Example:

"call.answered"

source
enum<string>
required

live — sent by real traffic: a real call, or a lead event (lead.created, lead.updated), which can belong to no call and then has call_id: null. test — a rehearsal: sent by POST /tools/{id}/test (a legacy webhook tool's test, or a workflow tool's real test with policy: allowlist), which happens on no call and so has call_id: null, or sent on a test call you placed from the dashboard (the agent's Test tab or a test dial — the calls GET /calls reports as source: "test"), a before-call step's request on one included.

Available options:
live,
test
Example:

"live"

status
enum<string>
required

delivered — your endpoint accepted it. failed — it did not, after every attempt (it refused, could not be reached, or — for a workflow tool — answered 2xx with a body the tool could not use). pending — it has not settled yet. unknown — a workflow tool's request, or a retry, got no answer in time: your endpoint may or may not have acted on it.

Available options:
delivered,
failed,
pending,
unknown
exchange
object | null
required

The delivery's full record (from 21 October 2026): the request exactly as it left (the full URL with its query, every header sent, the body) and the answer (status, every header, the body), each secret "[REDACTED]" and named in masked, the same record GET /calls/{id} gives each tool call. The answer's body is what the endpoint returned, at most 2,000 characters for a webhook delivery. Kept for 90 days, then details_expired is true and request and response are null. Null for a delivery made before records began. Bodies are null when bodies_withheld; the URL is scheme://host when destination_path_withheld.

bodies_withheld
boolean
required

True when the key does not hold calls:read: the two bodies carry call data (the caller, the numbers, what was collected), so a key reading the log with tools:read alone gets request.body and response.body as null.

destination_path_withheld
boolean
required

True when the key holds neither tools:read nor tools:update: an address is the tool's configuration, and for a Make or Zapier hook its path is the credential, so request.destination and retry_target.destination are scheme://host only.

retryable
boolean
required

True when POST /deliveries/{id}/retry would send it: it failed (and was not answered with a 2xx) or is unknown (sent again only with acknowledge_unknown: true), it has not already been retried (retried_by is null), its sender is still a webhook with an address, and its tool is not archived.

request
object
required
response
object
required
retry_target
object | null
required

Where POST /deliveries/{id}/retry would send it now — the sender's current address, which is not always where this delivery went. Null when the sender is no longer a webhook with an address.

delivered_at
string<date-time> | null

When your endpoint accepted it: the same moment as at on a delivered row, and null on a failed, pending or unknown one, where nothing is known to have been delivered. Use at for the row's time.

chain_root_id
string<uuid> | null

The first delivery of the chain this row belongs to — the X-Webhook-Delivery-Id every send of it carried, and the id your endpoint should dedupe on. A first send's own id; a retry's original (however many retries in); for a call.dnc_blocked the platform sent again on its own, its first delivery. Null only when it could not be read (try again).

call_request_id
string<uuid> | null

The call request (GET /call-requests/{id}) a before-call step's request served (event call.preparing, from 2 October 2026). Such a send happens before the call exists, so its call_id is usually null. Null on every other delivery.

response_status
integer | null

The HTTP status your endpoint answered with. Null when nothing answered.

Example:

200

attempt_count
integer | null

How many times the request has been sent, the one that settled it included, counted across retries: a retry of a delivery sent once reads 2 (from 1 October 2026; a retry recorded before then reads 1). The X-Webhook-Delivery-Attempt of its last send.

error_code
enum<string> | null

Why it did not land, as a code to branch on: http_timeout (no answer within the limit; the row is unknown, so a retry needs acknowledge_unknown), legacy_http_timeout (the same, from an agent's own webhook or a legacy webhook tool, which record it failed and retry it without asking), http_network_error (unreachable, or the connection dropped before an answer), downstream_http_error (it answered with an error; see response_status), output_schema_invalid / invalid_json_response / response_too_large (a workflow tool's endpoint answered 2xx with something the tool could not use), url_resolves_private, or delivery_failed for anything else. Null on a delivered or pending row. The same codes a tool test and a workflow step use.

Available options:
http_timeout,
legacy_http_timeout,
http_network_error,
downstream_http_error,
output_schema_invalid,
invalid_json_response,
response_too_large,
url_resolves_private,
delivery_failed,
null
Example:

"http_timeout"

error_message
string | null

One sentence, for a person to read, written only when the delivery failed — for example "Webhook did not respond within 30 seconds", or, for a workflow tool that answered 2xx without its Outputs, "Webhook answered HTTP 200, but not with the tool's outputs (missing: booking_id)", which names the Output fields (never a value). Wording may change; branch on status and error_code.

tool_name
string | null

The name you know the sender by — the tool whose step sent it, or, for an agent not yet on the workflow engine, the agent itself.

test_id
string<uuid> | null

The tool test that sent it (GET /tools/{id}/tests/{test_id}): a test delivery has an id of its own, so this is the way back. Null for anything else, and for a retry of a test.

tool_archived
boolean

True when the tool that sent it is archived: it cannot be retried (404 WORKFLOW_TOOL_ARCHIVED) until the tool is restored with POST /tools/{id}/restore.