# Webhooks

> Manage webhook endpoints with the Jump EHR Webhooks API. Create, update, delete, and test webhook subscriptions.

Source: https://docs.usejump.co.uk/api-reference/webhooks

The Webhooks API lets you manage webhook endpoints that receive real-time event notifications from Jump EHR. For an overview of webhook concepts, event types, and signature verification, see the [Webhooks guide](https://docs.usejump.co.uk/webhooks).

  <Callout type="warning">
    The signing secret (`whsec_...`) is returned **only in the creation response**. Store it securely — it cannot be retrieved later.
  </Callout>

  New endpoints send [minimal payloads](https://docs.usejump.co.uk/webhooks#minimal-payloads-and-fetch-on-notify): ids only, so you fetch the record when notified. `payload_version` shows which an endpoint sends; `legacy_full` is deprecated and an endpoint can be switched from it to `minimal`, not back.
## List webhook endpoints

`GET /webhooks`

API-key scope: `manage_webhooks`

Returns a paginated list of webhook endpoints for your organisation.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no | Maximum number of records to return (1–100, default 20) |
| `offset` | query | integer | no | Number of records to skip (default 0) |
| `is_active` | query | boolean | no |  |

### Responses

- `200` Paginated list of webhook endpoints

## Create a webhook endpoint

`POST /webhooks`

API-key scope: `manage_webhooks`

Creates a new webhook endpoint. The signing secret is returned **only in this response** — store it securely.
Use the secret to verify `X-Webhook-Signature` headers on incoming deliveries (HMAC-SHA256).

**Appointment times in deliveries.** `appointment.*` events carry the
appointment in `data.object` and, on an update, its earlier values in
`data.previous`. Since 2026-10-10, `start_time` / `end_time` in both are
written in the practice's local time with its UTC offset
(`2026-10-12T18:45:00+01:00`) and `data.object.timezone` names the zone;
before, they were UTC (`2026-10-12T17:45:00+00:00`). The same instant
either way: parse them as instants, never as clock digits.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string (uuid) | no | Optional UUID for request deduplication. Same key + same body returns the cached response. Same key + different body returns 409 CONFLICT. Keys are scoped to your organisation and endpoint, and expire after 24 hours. |

### Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string (uri) | yes | Must use HTTPS |
| `events` | string[] | yes |  |
| `name` | string | no |  |
| `payload_version` | string | no | Optional. New endpoints always receive minimal payloads; `legacy_full` is deprecated and is refused with 422 VALIDATION_ERROR. One of: `minimal`. |

### Responses

- `201` Created — includes one-time signing secret
- `409` Idempotency key reused with different request body
- `422` Request body failed validation

## Retrieve a webhook endpoint

`GET /webhooks/{id}`

API-key scope: `manage_webhooks`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string (uuid) | yes |  |

### Responses

- `200` Webhook endpoint detail
- `404` Resource not found (or belongs to a different organisation)

## Update a webhook endpoint

`PATCH /webhooks/{id}`

API-key scope: `manage_webhooks`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string (uuid) | yes |  |

### Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | no |  |
| `url` | string (uri) | no | Must use HTTPS |
| `events` | string[] | no |  |
| `is_active` | boolean | no |  |
| `payload_version` | string | no | Send `minimal` to switch a `legacy_full` endpoint to minimal payloads. The switch is one way: changing a `minimal` endpoint to `legacy_full` returns 422 VALIDATION_ERROR. One of: `minimal`, `legacy_full`. |

### Responses

- `200` Updated
- `404` Resource not found (or belongs to a different organisation)
- `422` Request body failed validation

## Delete a webhook endpoint

`DELETE /webhooks/{id}`

API-key scope: `manage_webhooks`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string (uuid) | yes |  |

### Responses

- `200` Deleted
- `404` Resource not found (or belongs to a different organisation)

## Send a test webhook

`POST /webhooks/{id}/test`

API-key scope: `manage_webhooks`

Enqueues a `test.ping` event for delivery to this endpoint. Use this to verify your receiver is working.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string (uuid) | yes |  |

### Responses

- `200` Test event queued
- `404` Resource not found (or belongs to a different organisation)
