# Webhooks

First written 11 March 2026, revised 15 August 2026.

Webhook subscription management and event delivery.

8 endpoints

## Endpoints

| Method | Path | Description | Auth |

[

`/webhooks/`

Register a webhook

| POST |  | Register a webhook | JWT |

][

`/webhooks/`

List webhook subscriptions

| GET |  | List webhook subscriptions | JWT |

][

`/webhooks/{subscription_id}`

Get webhook details

| GET |  | Get webhook details | JWT |

][

`/webhooks/{subscription_id}`

Update a webhook

| PATCH |  | Update a webhook | JWT |

][

`/webhooks/{subscription_id}`

Delete a webhook

| DELETE |  | Delete a webhook | JWT |

][

`/webhooks/{subscription_id}/deliveries`

List webhook deliveries

| GET |  | List webhook deliveries | JWT |

][

`/webhooks/{subscription_id}/test`

Send test webhook

| POST |  | Send test webhook | JWT |

][

`/webhooks/events`

List supported event types

| GET |  | List supported event types | JWT |

]

## Endpoint Details

POST `/webhooks/` JWT

Register a new HTTPS endpoint to receive webhook event notifications. Requires org_admin role.

#### Request Example

```
{
  "url": "https://ats.example.com/webhooks/alter",
  "events": [
    "match.proposed",
    "match.accepted",
    "attestation.issued"
  ],
  "secret": "whsec_abc123..." // pragma: allowlist secret
}

```
#### Response

```
{
  "id": "w1h2k3s4-u5b6-7890-abcd-ef1234567890",
  "org_id": "e1f2a3b4-c5d6-7890-efab-cdef12345678",
  "url": "https://ats.example.com/webhooks/alter",
  "events": [
    "match.proposed",
    "match.accepted",
    "attestation.issued"
  ],
  "is_active": true,
  "failure_count": 0,
  "created_at": "2026-03-10T10:00:00Z"
}

```
GET `/webhooks/` JWT

List all webhook subscriptions for the authenticated organisation. Cursor-paginated.

GET `/webhooks/events` JWT

Returns the list of event types that can be subscribed to: placement.created, placement.updated, attestation.issued, attestation.revoked, match.proposed, match.accepted, match.declined.

#### Response

```
{
  "events": [
    "placement.created",
    "placement.updated",
    "attestation.issued",
    "attestation.revoked",
    "match.proposed",
    "match.accepted",
    "match.declined"
  ]
}

```
GET `/webhooks/{subscription_id}` JWT

Retrieve details for a single webhook subscription.

#### Path Parameters

| Name | Type | Required | Description |
| `subscription_id`* | `string` | Required | Subscription UUID |

PATCH `/webhooks/{subscription_id}` JWT

Update the URL, subscribed events, or active status.

#### Path Parameters

| Name | Type | Required | Description |
| `subscription_id`* | `string` | Required | Subscription UUID |

DELETE `/webhooks/{subscription_id}` JWT

Delete a webhook subscription and its delivery history. Returns 204 No Content.

#### Path Parameters

| Name | Type | Required | Description |
| `subscription_id`* | `string` | Required | Subscription UUID |

POST `/webhooks/{subscription_id}/test` JWT

Dispatch a synthetic test event to verify connectivity and signature validation.

#### Path Parameters

| Name | Type | Required | Description |
| `subscription_id`* | `string` | Required | Subscription UUID |

GET `/webhooks/{subscription_id}/deliveries` JWT

Paginated list of delivery attempts for a subscription.

#### Path Parameters

| Name | Type | Required | Description |
| `subscription_id`* | `string` | Required | Subscription UUID |

#### Query Parameters

| Name | Type | Required | Description |
| `limit` | ` integer` | Optional | Page size (max 100) |
| `cursor` | ` string` | Optional | Pagination cursor |

https://truealter.com/docs/rest-api/webhooks
