curl --request GET \
--url https://api.goyappr.com/deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/deliveries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goyappr.com/deliveries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.goyappr.com/deliveries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.goyappr.com/deliveries"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.goyappr.com/deliveries")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"kind": "delivery",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tool_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"at": "2023-11-07T05:31:56Z",
"retry_of": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retried_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "call.answered",
"source": "live",
"status": "delivered",
"delivered_at": "2023-11-07T05:31:56Z",
"chain_root_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"response_status": 200,
"attempt_count": 123,
"error_code": "http_timeout",
"error_message": "<string>",
"tool_name": "<string>"
}
],
"pagination": {
"limit": 123,
"has_more": true,
"next_cursor": "<string>"
}
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}List Deliveries
Every webhook delivery in this workspace, newest first, across calls — settled ones, and
any still sending (status: pending). Required scope
calls:read or tools:read — either one (a calls:read key already reads these rows
in every call’s timeline).
A delivery row here is the delivery row of a call’s timeline
(GET /calls/{id} → timeline[]), field for field, plus the call_id it happened
on and its source. One parser reads both. It is how you confirm a configured webhook
actually fired — for one call, for one tool across a week, or for everything that
failed last night. A retry is a row of its own with retry_of set, and the row it
re-sent carries retried_by, so an original and its retry never read alike.
A rehearsal counts. A POST /tools/{id}/test that actually reaches the endpoint
writes a row here too — a legacy webhook tool’s test at once, a workflow tool’s real
test (policy: allowlist) once its request settles — with call_id: null and
source: test, so “did my test reach the endpoint?” is answered from the same log. A
delivery sent on a test call placed from the dashboard is source: test as well. A
mock test sends nothing and writes nothing. Left out, ?source= narrows nothing and
both kinds are returned.
Summaries only, exactly as the per-call timeline is. One delivery’s request body and
its endpoint’s answer are read with GET /deliveries/{id}, with every configured
header value replaced; no URL or header value leaves the platform here.
Paging is by cursor, not by offset. This log grows while it is being read — a
running campaign writes to it between two pages — so an offset would silently skip or
repeat rows. Follow pagination.next_cursor until has_more is false.
curl --request GET \
--url https://api.goyappr.com/deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/deliveries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goyappr.com/deliveries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.goyappr.com/deliveries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.goyappr.com/deliveries"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.goyappr.com/deliveries")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/deliveries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"kind": "delivery",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tool_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"at": "2023-11-07T05:31:56Z",
"retry_of": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retried_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "call.answered",
"source": "live",
"status": "delivered",
"delivered_at": "2023-11-07T05:31:56Z",
"chain_root_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"call_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"response_status": 200,
"attempt_count": 123,
"error_code": "http_timeout",
"error_message": "<string>",
"tool_name": "<string>"
}
],
"pagination": {
"limit": 123,
"has_more": true,
"next_cursor": "<string>"
}
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}status: "unknown") and any still sending (status: "pending"). This is how you confirm a configured webhook actually
fired — for one call, for one tool across a week, or for everything that failed last night.
Required scope: calls:read or tools:read — either one. A reporting key that reads calls
already gets these rows in every call’s timeline, so it reads them here too.
A row here is the delivery row of a call’s timeline
(Get Call → timeline[]), field for field, plus the call_id it
happened on and the source that says whether it was real traffic or a rehearsal. One parser
reads both. Until this endpoint existed, the log was readable one call
at a time, so watching a safeguard’s health across many calls meant paging GET /calls and
opening each one.
# Everything that failed yesterday
curl "https://api.goyappr.com/deliveries?status=failed&from=2026-09-21T00:00:00Z&to=2026-09-22T00:00:00Z" \
-H "Authorization: Bearer $YAPPR_API_KEY"
# One tool's delivery health this week
curl "https://api.goyappr.com/deliveries?tool_id=$TOOL_ID&from=2026-09-15T00:00:00Z" \
-H "Authorization: Bearer $YAPPR_API_KEY"
# Everything one agent sent this week, however it is configured
curl "https://api.goyappr.com/deliveries?agent_id=$AGENT_ID&from=2026-09-15T00:00:00Z" \
-H "Authorization: Bearer $YAPPR_API_KEY"
# Did the webhook fire for this call?
curl "https://api.goyappr.com/deliveries?call_id=$CALL_ID" \
-H "Authorization: Bearer $YAPPR_API_KEY"
# Just the rehearsals — the tool tests you ran by hand
curl "https://api.goyappr.com/deliveries?source=test&tool_id=$TOOL_ID" \
-H "Authorization: Bearer $YAPPR_API_KEY"
Parameters
Every parameter is optional; one sent with no value, or one not in this table, is400 DELIVERIES_QUERY_INVALID.
| Parameter | Takes | What it narrows to |
|---|---|---|
tool_id | a tool id | Deliveries that tool’s steps sent — its before-call steps’ requests included (from 2 October 2026; see Before the call). |
agent_id | an agent id | Deliveries the agent sent itself, and deliveries its tools sent on its calls. |
call_id | a call id | The deliveries on one call — the same rows its timeline carries. |
status | delivered, failed, pending or unknown | One outcome. failed is the delivery-health question; unknown is the one to check on your side — it leaves out a delivery whose chain ended delivered (its retry, or a retry of that retry, was accepted), which is settled. |
source | live or test | Real traffic, or the rehearsals (tool tests and dashboard test calls). Left out, both. |
retried | true or false | Only deliveries already sent again (retried_by set), or only those not. ?status=failed&retried=false is the list a “retry every failure” loop should read. A page can then hold fewer rows than limit while has_more is true. |
from, to | an ISO 8601 timestamp (a date alone covers that whole day, UTC) | Rows whose at falls in the window. from after to is refused. |
limit | 1–200, default 50 | Rows per page. |
cursor | pagination.next_cursor | The next page, asked with the same filters. See Paging. |
{
"data": [
{
"kind": "delivery",
"id": "3f2a…",
"call_id": "9c1d…",
"tool_id": "8d93…",
"agent_id": "a1b2…",
"at": "2026-09-16T10:00:08.000Z",
"delivered_at": "2026-09-16T10:00:08.000Z",
"event": "call.answered",
"status": "delivered",
"response_status": 200,
"attempt_count": 1,
"error_message": null,
"error_code": null,
"tool_name": "notifyCrm",
"retry_of": null,
"retried_by": null,
"chain_root_id": "3f2a…",
"call_request_id": null,
"source": "live"
}
],
"pagination": { "limit": 50, "has_more": true, "next_cursor": "MjAyNi0w…" }
}
Reading a delivery
status is the one field to branch on: delivered means your endpoint accepted it, failed
means 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 means it has not settled
yet, and unknown means a workflow tool’s request, or a retry, got no answer in time: your
endpoint may or may not have acted on it, so check there before
sending it again. A workflow tool’s timeout recorded before
27 September 2026 reads unknown too, like every one since; an agent’s own webhook and a legacy
webhook tool that got no answer read failed. response_status
is what your endpoint answered with, and is null when nothing answered at all.
attempt_count includes the attempt that settled it. at is the row’s time; delivered_at is
the same moment on a delivered row and null on a failed, pending or unknown one.
Retries
A retry is a row of its own: itsretry_of is the delivery
it re-sent, and that delivery’s retried_by points back at it — on this list, on
Get Delivery and in a call’s timeline alike. A delivery is
retried at most once, so a loop that retries every failure should skip rows whose
retried_by is set (they answer 409 DELIVERY_ALREADY_RETRIED) and read the retry instead.
chain_root_id is the first delivery of the chain a row belongs to: a first send’s own id,
and a retry’s original however many retries in (a call.dnc_blocked event the platform sent
again on its own starts at its first delivery). It is the X-Webhook-Delivery-Id every send of
that chain carried, so it is the id to dedupe on — see
Webhooks. A delivery whose tool is archived
cannot be retried until the tool is restored.
error_message is one sentence written for a person, only on a failure — for example
“Webhook did not respond within 30 seconds”. Its wording may change, so branch on status and
error_code, never on the text. error_code is the reason as a code: http_timeout (no answer
in time; the row is unknown), legacy_http_timeout (the same from an agent’s own webhook or a
legacy webhook tool, which record it failed; a retry sends it without asking), http_network_error, downstream_http_error (see response_status), output_schema_invalid,
invalid_json_response, response_too_large, url_resolves_private, or delivery_failed for
anything else — the codes a tool test uses. It is null on a
delivered or pending row.
Real traffic and rehearsals
source is live when real traffic sent the delivery — a real call, or a lead event
(lead.created, lead.updated), which can belong to no call and then has call_id: null — and
test when you did: on a test call you placed from the dashboard (the agent’s Test tab or a
test dial, which List Calls reports as source: "test"), or with a
tool test. Every
Test Tool request that actually reaches your endpoint writes a row
here as well — a legacy webhook tool’s test at once, a workflow tool’s real test
(policy: "allowlist") as soon as its request settles — so the answer to “did my test actually
reach the endpoint?” is in the same log as everything else. A mock test sends nothing and writes
nothing. A rehearsal happens on no call, so its call_id is null and its event carries a
test: prefix; branch on source rather than on the spelling of the event.
?source=live leaves the rehearsals out of a delivery-health report, and ?source=test asks
for nothing else. Left out, you get both.
Before the call
A before-call step — a lookup a workflow runs while the call is being prepared — sends its request before the call exists. From 2 October 2026 each one is a row here too, withevent
call.preparing, the call request it served in
call_request_id, and usually call_id: null. It carries the same headers as any other
delivery, and its id is the X-Webhook-Delivery-Id it was sent with. On a dashboard test call
it reads source: "test" (its event is then test:call.preparing). With no call yet, it has
no agent either, so ?agent_id= does not find it: ask by tool_id, and match it to its call
through call_request_id (Get Call Request names the call).
A live call’s mid-call request is still not a row.
tool_name is the name you know the sender by: the tool whose step sent the delivery, or, for
an agent not yet on the workflow engine, the agent itself. Names repeat, so every row also
carries ids: tool_id is the tool whose step sent it (null when an agent sent in its own
name), and agent_id is that agent or, for a tool’s step, the agent whose call it happened on
(null for a tool test). They are the ids the tool_id and agent_id filters take, and id
is the one a call’s timeline row carries, so the two can be joined.
agent_id filters the way you mean it: deliveries the agent sent itself, and deliveries
its tools sent on its calls. An agent on the workflow engine sends through its tools, so this
filter keeps answering after you move one onto it.
Summaries only, exactly as the per-call timeline is. What one delivery sent and what your
endpoint answered are on Get Delivery, with every configured
header value replaced by [REDACTED] and the address it went to without its query string,
and a failed one can be sent again with Retry Delivery. No
header value leaves the platform.
Paging
Paging is by cursor, not by offset. This log grows while it is being read — a running campaign writes to it between two pages — so an offset would silently skip or repeat rows. Followpagination.next_cursor until has_more is false:
cursor=""
while :; do
url="https://api.goyappr.com/deliveries?status=failed&limit=200"
# Only send `cursor` once you have one: every filter here is refused when it
# arrives with no value, so `cursor=` would 400 on the first page.
[ -n "$cursor" ] && url="$url&cursor=$cursor"
page=$(curl -s "$url" -H "Authorization: Bearer $YAPPR_API_KEY")
echo "$page" | jq -c '.data[]'
[ "$(echo "$page" | jq -r '.pagination.has_more')" = "true" ] || break
cursor=$(echo "$page" | jq -r '.pagination.next_cursor')
done
limit may
change). One cut for other filters is 400 DELIVERY_CURSOR_INVALID, saying so, with
issues: [{"code": "cursor_invalid", "path": "cursor", …}] — it used to continue the other list
from a position that list never had. A cursor this endpoint did not issue is
400 DELIVERY_CURSOR_INVALID too, rather than a silent first page — so a corrupted loop stops instead of re-reading the newest rows for ever. Cursors are
signed, as on GET /calls: one built by hand, edited, or taken from
the calls list does not decode. A cursor handed out before signing began is refused once; read the
first page again and follow the new next_cursor. A from
after to is 400 DELIVERIES_QUERY_INVALID too, rather than an empty page that reads as nothing
was delivered.
Errors
| Status | Code | When |
|---|---|---|
| 400 | DELIVERIES_QUERY_INVALID | A filter this log does not have, a filter sent twice or with no value, a status, source or limit outside its range, or a from / to that is not a real timestamp. The message names the allowed set. |
| 400 | DELIVERY_CURSOR_INVALID | The cursor was not issued by this endpoint, or was cut for a list with other filters (the message says which). |
| 404 | AGENT_NOT_FOUND, NOT_FOUND, WORKFLOW_NOT_FOUND | agent_id, call_id or tool_id names no agent, call or tool in this workspace (archived ones still resolve). The message names the filter. It used to answer 200 with an empty page, which read as “nothing was delivered”. |
| 401 | MISSING_KEY / INVALID_KEY / EXPIRED_KEY | No key, an unknown or revoked key, or an expired one. |
| 403 | INSUFFICIENT_SCOPE | The key holds neither calls:read nor tools:read. Add either one under Settings → API keys. |
| 429 | RATE_LIMIT | Too many requests; wait for the reset the headers name. |
Authorizations
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).
Query Parameters
Deliveries this agent sent, plus deliveries its tools sent on its calls. An agent on the workflow engine sends through its tools rather than in its own name, so both are answered here — the filter never reads as "this agent sent nothing" because of where the agent happens to be configured.
failed is the delivery-health query; unknown lists what to check on your side - leaving out a delivery whose chain ended delivered (its retry, or a later retry of it, was accepted), which is settled. Anything outside the list is 400 DELIVERIES_QUERY_INVALID.
delivered, failed, pending, unknown false for only the deliveries not yet sent again (retried_by null) - what a "retry every failure" loop should read - and true for only those that were. Left out, both. Anything else is 400 DELIVERIES_QUERY_INVALID. With either, a page can hold fewer rows than limit while has_more is true.
true, false live for real traffic only (real calls and lead events), test for the rehearsals — what POST /tools/{id}/test sent and what was sent on a test call placed from the dashboard. Left out, both are returned. Anything outside the list is 400 DELIVERIES_QUERY_INVALID.
live, test