# One webhook delivery attempt, with the other attempts for its event

> get webhook delivery: reference page for this CustomDomain™ API operation in the webhooks group. Covers parameters, request body, responses and error codes.

Source: https://docs.customdomain.ai/docs/api-reference/webhooks/getWebhookDelivery

## `GET https://api.customdomain.ai/v1/webhook-deliveries/{id}`

The attempt, and in `history` every attempt to send the same event to the same endpoint, oldest first (this one included). An id that is not the caller's answers 404. A delegated agent token needs `app:read`.

### Authentication

`apiKey`, `widgetJWT`, `agentToken`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes |  |
| `app_id` | query | string | no |  |

### Responses

| Status | Description |
| --- | --- |
| `200` | The delivery |
| `401` | Error envelope: {code, title, details, request_id}. |
| `403` | Error envelope: {code, title, details, request_id}. |
| `404` | Error envelope: {code, title, details, request_id}. |
| `503` | Error envelope: {code, title, details, request_id}. |

### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes |  |
| `endpoint_id` | string | no |  |
| `application_id` | string | no |  |
| `url` | string | no |  |
| `event_id` | string | no |  |
| `event_type` | string | yes |  |
| `domain` | string | no |  |
| `attempts` | integer | no | Which try this row is for the event (1 for the first POST). |
| `status_code` | integer | no | HTTP status of this attempt (0 = no response) |
| `delivered` | boolean | no |  |
| `error` | string | no |  |
| `next_attempt_at` | string | no | When the next try is due; present only on a failed try that will be retried. |
| `created_at` | string | no |  |
| `history` | array of object | yes |  |

The full specification is served at `GET https://api.customdomain.ai/v1/openapi.json`.
