# getWebhookDelivery

Source: /openapi/thomas-federated.openapi.json

## Operation

| Method | URL |
|---|---|
| GET | https://api.thomas.co/v1/webhook-deliveries/{eventId} |

| Field | Value |
|---|---|
| operationId | getWebhookDelivery |
| method | GET |
| server | https://api.thomas.co |
| path | /v1/webhook-deliveries/{eventId} |
| tags | `Partner Events & Webhooks` |
| summary | Retrieve the delivery status of one event |
| badges | None |
| scopes | Alternative 1: `assessments:r` OR Alternative 2: `results:r` |

## Description

Returns the delivery status of one event, by the event id the webhook carried, for the calling API client on this tenant.

## Request Parameters

| Name | In | Required | Schema | Description |
|---|---|---|---|---|
| eventId | path | true | string:uuid | The id the delivered webhook carried |
| Thomas-Tenant-Id | header | true | string:uuid | Required for API clients: the Tenant this call acts in. Send exactly one. Signed-in users don't send it — their Tenant comes from their session. The header only selects the Tenant; your Grant for it decides access, and is checked on every call. |

## Request Body

None.

## Responses

| Status | Description | Schema refs |
|---|---|---|
| 200 | The delivery status of the event | #/components/schemas/WebhookDeliveryStatusItemResponseDto |
| 400 | The event id or the tenant selector was refused | #/components/schemas/ApiErrorResponseDto |
| 401 | Invalid or missing authentication token (AUTH_TOKEN_INVALID) | #/components/schemas/ApiErrorResponseDto |
| 403 | Only a Partner-owned API client may call this operation; a signed-in person, a service account and a Partner acting on behalf of a person are refused (PRINCIPAL_TYPE_NOT_ALLOWED). An API client is refused before any tenant data is read or changed when its tenant context, Grant or scope does not authorise the operation (AUTH_TENANT_NOT_GRANTED), or when its service membership is absent (AUTH_SERVICE_MEMBERSHIP_MISSING). An API client holds no organisation role, so AUTH_INSUFFICIENT_ROLE never applies to it. | #/components/schemas/ApiErrorResponseDto |
| 404 | No delivery with this event id belongs to the calling API client on this tenant. A delivery to a different API client, one on a different tenant, and one whose event type the calling client's Grant no longer covers are concealed behind this same response. | #/components/schemas/ApiErrorResponseDto |
| 429 | Rate limit exceeded. | #/components/schemas/ApiErrorResponseDto |

### Response 429 headers

| Name | Description | Schema |
|---|---|---|
| Retry-After | Seconds until the rate-limit block expires before retrying. | {"type":"integer","minimum":0} |
| RateLimit-Limit | Configured request limit for the active rate-limit window. | {"type":"integer"} |
| RateLimit-Remaining | Requests remaining in the active rate-limit window; zero when blocked. | {"type":"integer"} |
| RateLimit-Reset | Seconds until the rate-limit block expires. | {"type":"integer","minimum":0} |

## Artifact Examples

### Response 400 example — HTTP_BAD_REQUEST

```json
{
  "statusCode": 400,
  "message": "Validation failed (uuid is expected)",
  "error": "HTTP_BAD_REQUEST"
}
```

### Response 400 example — AUTH_TENANT_CONTEXT_INVALID

```json
{
  "statusCode": 400,
  "message": "Exactly one valid Thomas-Tenant-Id header is required",
  "error": "AUTH_TENANT_CONTEXT_INVALID"
}
```

### Response 401 example

```json
{
  "statusCode": 401,
  "message": "Invalid or missing authentication token",
  "error": "AUTH_TOKEN_INVALID"
}
```

### Response 404 example

```json
{
  "statusCode": 404,
  "message": "Webhook delivery was not found",
  "error": "WEBHOOK_DELIVERY_NOT_FOUND"
}
```

### Response 429 example

```json
{
  "statusCode": 429,
  "message": "ThrottlerException: Too Many Requests",
  "error": "HTTP_TOO_MANY_REQUESTS"
}
```
