> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goyappr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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`.


Every webhook delivery in your workspace, newest first, across calls — the settled ones, those
nobody knows landed (`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](https://docs.goyappr.com/api-reference/calls/get.md) → `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.

```bash theme={null}
# 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, is
`400 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](#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](#paging). |

```json theme={null}
{
  "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](https://docs.goyappr.com/api-reference/deliveries/retry.md). 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](https://docs.goyappr.com/api-reference/deliveries/retry.md) is a row of its own: its `retry_of` is the delivery
it re-sent, and that delivery's `retried_by` points back at it — on this list, on
[Get Delivery](https://docs.goyappr.com/api-reference/deliveries/get.md) 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](https://docs.goyappr.com/api-reference/webhooks.md#recognising-a-resend). 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](https://docs.goyappr.com/api-reference/tools/test-get.md) 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](https://docs.goyappr.com/api-reference/calls/list.md) reports as `source: "test"`), or with a
tool test. Every
[Test Tool](https://docs.goyappr.com/api-reference/tools/test.md) 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, with `event`
`call.preparing`, the [call request](https://docs.goyappr.com/api-reference/calls/request-get.md) 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](https://docs.goyappr.com/api-reference/calls/request-get.md) 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](https://docs.goyappr.com/api-reference/deliveries/get.md), 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](https://docs.goyappr.com/api-reference/deliveries/retry.md). 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.
Follow `pagination.next_cursor` until `has_more` is `false`:

```bash theme={null}
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
```

A cursor continues only the list it was cut for: send it with the same filters (`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`](https://docs.goyappr.com/api-reference/calls/list): 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. |

See [Trigger events](https://docs.goyappr.com/api-reference/workflows/events.md) for which events a delivery can carry and
[Webhooks](https://docs.goyappr.com/api-reference/webhooks.md) for where they are configured.


## OpenAPI

````yaml GET /deliveries
openapi: 3.1.0
info:
  title: Yappr API
  description: >
    Create and manage AI voice agents, purchase phone numbers, configure tools,
    and initiate calls — all via REST.
  version: 1.0.0
  contact:
    url: https://goyappr.com
servers:
  - url: https://api.goyappr.com
    description: Production
security:
  - apiKey: []
paths:
  /deliveries:
    get:
      tags:
        - Deliveries
      summary: List webhook deliveries
      description: >
        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`.
      operationId: listDeliveries
      parameters:
        - in: query
          name: tool_id
          schema:
            type: string
            format: uuid
          description: >
            Only deliveries sent by this tool's step - a before-call step's
            included (from 2 October 2026), and on test calls too.
        - in: query
          name: agent_id
          schema:
            type: string
            format: uuid
          description: >
            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.
        - in: query
          name: call_id
          schema:
            type: string
            format: uuid
          description: >-
            Only deliveries on this one call — the same rows its timeline
            carries.
        - in: query
          name: status
          schema:
            type: string
            enum:
              - delivered
              - failed
              - pending
              - unknown
          description: >
            `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.
        - in: query
          name: retried
          schema:
            type: string
            enum:
              - 'true'
              - 'false'
          description: >
            `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.
        - in: query
          name: source
          schema:
            type: string
            enum:
              - live
              - test
          description: >
            `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.
        - in: query
          name: from
          schema:
            type: string
            format: date-time
          description: >
            Deliveries whose `at` is on or after this timestamp. A value that is
            not a real date — including a month-end its month does not have,
            like 2026-09-31 — is 400 DELIVERIES_QUERY_INVALID.
        - in: query
          name: to
          schema:
            type: string
            format: date-time
          description: >-
            Deliveries whose `at` is on or before this timestamp. Refused the
            same way from is. A date-only value covers that whole day (UTC).
        - in: query
          name: limit
          schema:
            type: integer
            default: 50
            maximum: 200
        - in: query
          name: cursor
          schema:
            type: string
          description: >
            `pagination.next_cursor` from the previous page, sent with the same
            filters (`limit` may change). A cursor this endpoint did not issue,
            or one cut for other filters, is 400 DELIVERY_CURSOR_INVALID
            (`issues[0].code` `cursor_invalid`) rather than a silent first page.
      responses:
        '200':
          description: Delivery rows, newest first
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Delivery'
                  pagination:
                    type: object
                    properties:
                      limit:
                        type: integer
                      has_more:
                        type: boolean
                      next_cursor:
                        type: string
                        nullable: true
                        description: >-
                          Pass as `cursor` for the next page. Null on the last
                          one.
        '400':
          description: >
            `DELIVERIES_QUERY_INVALID` — a filter this log does not have, a
            filter sent with no value, a `status` / `retried` / `limit` outside
            its range, or a `from` / `to` that is not a real timestamp.
            `DELIVERY_CURSOR_INVALID` — the `cursor` was not issued by this
            endpoint, or was cut for a list with other filters (the message says
            which; `issues` names `cursor`). A parameter sent twice is refused
            too (DELIVERIES_QUERY_INVALID), and a cursor is signed: one built by
            hand or taken from GET /calls is DELIVERY_CURSOR_INVALID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: '`MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            `INSUFFICIENT_SCOPE` — the key holds neither `calls:read` nor
            `tools:read`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            AGENT_NOT_FOUND, NOT_FOUND or WORKFLOW_NOT_FOUND - agent_id, call_id
            or tool_id names nothing in this workspace. The message names the
            filter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Delivery:
      type: object
      description: >
        One webhook delivery, as `GET /deliveries` lists it and as a call's own
        timeline

        carries it. The two shapes are the same: this object is the timeline's
        `delivery` row

        (which carries the same `id`, `tool_id`, `agent_id`, `retry_of` and
        `retried_by`) plus

        the `call_id` it happened on and the `source` that says whether it was
        real traffic or

        a rehearsal.
      required:
        - kind
        - id
        - call_id
        - tool_id
        - agent_id
        - at
        - event
        - status
        - source
        - retry_of
        - retried_by
      properties:
        kind:
          type: string
          enum:
            - delivery
          description: >
            Always `delivery`. Carried so a reader parsing a call's timeline and
            a reader paging this list can use one branch, not two.
        id:
          type: string
          format: uuid
        call_id:
          type: string
          format: uuid
          nullable: true
          description: The call this delivery was about. Read it with GET /calls/{id}.
        tool_id:
          type: string
          format: uuid
          nullable: true
          description: >
            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:
          type: string
          format: uuid
          nullable: true
          description: >
            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:
          type: string
          format: date-time
          description: >-
            When the delivery settled — or, on a `pending` row, when it was
            recorded.
        delivered_at:
          type: string
          format: date-time
          nullable: true
          description: >
            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.
        retry_of:
          type: string
          format: uuid
          nullable: true
          description: >-
            The delivery this one re-sent, when it is a retry (`POST
            /deliveries/{id}/retry`).
        retried_by:
          type: string
          format: uuid
          nullable: true
          description: >
            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.
        chain_root_id:
          type: string
          format: uuid
          nullable: true
          description: >
            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:
          type: string
          format: uuid
          nullable: true
          description: >
            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.
        event:
          type: string
          description: >
            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:
          type: string
          enum:
            - live
            - test
          description: >
            `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.
          example: live
        status:
          type: string
          enum:
            - delivered
            - failed
            - pending
            - unknown
          description: >
            `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.
        response_status:
          type: integer
          nullable: true
          description: >-
            The HTTP status your endpoint answered with. Null when nothing
            answered.
          example: 200
        attempt_count:
          type: integer
          nullable: true
          description: >
            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:
          type: string
          nullable: true
          enum:
            - 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
          description: >
            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.
          example: http_timeout
        error_message:
          type: string
          nullable: true
          description: >
            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:
          type: string
          nullable: true
          description: >
            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.
    Error:
      type: object
      required:
        - error
        - code
      description: >
        Every error response - the secret-key API and the browser data plane
        alike - carries a

        human-readable `error` and a stable machine `code`, and a refusal that
        names what is

        wrong with the request carries `issues[]` too. Branch on `code`, never
        on the `error`

        text. A refusal that names nothing more specific carries the code its
        status means:

        `BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the
        secret-key API

        answers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR`
        (402),

        `FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405),
        `CONFLICT` (409),

        `GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),

        `UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR`
        (500),

        `UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT`
        (504). Some

        refusals add members of their own beside these (a call request's
        `status`, a workflow's

        `current_version`); the operation says which.
      properties:
        error:
          type: string
          description: The refusal, in one sentence for a person. Its wording may change.
        code:
          type: string
          description: The stable code to branch on.
        issues:
          type: array
          description: >
            Each thing at fault, on a 400 or 422 that names them: every query
            parameter or body field, not just the first. `path` is the
            parameter's name or the field's location.
          items:
            type: object
            required:
              - code
              - message
            properties:
              code:
                type: string
                description: >-
                  query_param_unknown, query_param_repeated, query_param_blank,
                  query_param_invalid, field_unknown, field_required,
                  field_invalid, or the route's own word.
              path:
                type: string
              message:
                type: string
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        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`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.