# Manage webhooks with the API

The webhooks feature must be enabled using a feature flag on your Ripple Custody (Vault) instance. Contact your Ripple liaison if you're unable to access the feature.

Use this page to manage webhook channels with the Event Distribution Service (EDS) API. Webhooks push event notifications to an HTTPS endpoint that you control. To pull event history for reconciliation or audit workflows, see [Manage events with the API](/pt-br/products/custody/operations-and-maintenance/events-and-webhooks/events-api).

## Webhook actions

| Action | API procedure | API reference |
|  --- | --- | --- |
| Create a webhook channel | [Create a webhook channel](#create-a-webhook-channel) | [Create a channel](/pt-br/products/custody/reference/api/openapi/event-distribution-service/createchannel) |
| List webhook channels | [List webhook channels](#list-webhook-channels) | [Get all channels](/pt-br/products/custody/reference/api/openapi/event-distribution-service/getallchannels) |
| Get webhook channel details | [Get webhook channel details](#get-webhook-channel-details) | [Get channel details](/pt-br/products/custody/reference/api/openapi/event-distribution-service/getchannel) |
| Update a webhook channel | [Update a webhook channel](#update-a-webhook-channel) | [Update a channel](/pt-br/products/custody/reference/api/openapi/event-distribution-service/updatechannel) |
| Test a webhook channel | [Test a webhook channel](#test-a-webhook-channel) | [Test a channel](/pt-br/products/custody/reference/api/openapi/event-distribution-service/testchannel) |
| Delete a webhook channel | [Delete a webhook channel](#delete-a-webhook-channel) | [Delete a channel](/pt-br/products/custody/reference/api/openapi/event-distribution-service/deletechannel) |
| List delivery events across channels | [Track webhook delivery events](#track-webhook-delivery-events) | [Get all events](/pt-br/products/custody/reference/api/openapi/event-distribution-service/getallevents) |
| List delivery events for a channel | [Track webhook delivery events](#track-webhook-delivery-events) | [Get all events for a channel](/pt-br/products/custody/reference/api/openapi/event-distribution-service/getallchannelevents) |
| Get delivery event details | [Track webhook delivery events](#track-webhook-delivery-events) | [Get channel event details](/pt-br/products/custody/reference/api/openapi/event-distribution-service/getevent) |
| List channel audit records | [Review the channel audit trail](#review-the-channel-audit-trail) | [Get channel audit events](/pt-br/products/custody/reference/api/openapi/event-distribution-service/getchannelauditevents) |
| Get the webhook signing keys | [Verify webhook signatures](/pt-br/products/custody/operations-and-maintenance/events-and-webhooks/verify-webhook-signatures#get-the-public-keys) | [Get webhook signing keys](/pt-br/products/custody/reference/api/openapi/event-distribution-service/getwebhooksigningkeys) |


## Before you start

Prepare the following values:

| Value | Description |
|  --- | --- |
| `domainId` | Domain that owns the webhook channel. |
| `JWT_TOKEN` | JWT for an authenticated API user. |
| `createdBy` or `lastUpdatedBy` | User ID for the user creating or updating the channel. |
| Webhook URL | HTTPS endpoint where Ripple Custody (Vault) sends event notifications. |
| Event types | Event `payload.type` values to subscribe to, such as `IntentCreated`, `IntentUpdated`, or `IntentClosed`. |


You must be a user with the `eds-manager` role to create and manage webhook channels for your domain.

The Java SDK manages webhook channels through `client.webhooks()`. The TypeScript and Python SDKs don't yet include webhook helpers, so call the API directly from those languages. The Java examples assume a configured client. See [Integrate via SDK](/pt-br/products/custody/get-started/integrate-via-sdk). In the Java `Webhooks` methods, `domainId` and `channelId` are strings.

## Choose event types

You can subscribe to many event types when configuring a webhook. For detailed information about each event type and complete payload structures, see [Event payload reference](/pt-br/products/custody/reference/events-and-webhooks/event-payload-reference).

For intent state changes, subscribe to `IntentUpdated` to receive updates when an intent is approved or rejected. Subscribe to `IntentClosed` to receive updates when an intent reaches its final state.

## Webhook callback payload

When a subscribed event occurs, Ripple Custody (Vault) sends a minimal event payload to your webhook URL. The callback body uses the event shape returned by the Events API and is designed for easy parsing.

```json
{
  "domainId": "25aaec0d-e8dc-44b6-8070-9231f1ddadf0",
  "payload": {
    "id": "35e4d8d9-f943-484b-865c-c736679ba0cc",
    "type": "IntentCreated"
  },
  "id": "03424a3f-bdfc-4521-b8b2-933a8ff13cce",
  "sequenceNumber": 369,
  "savedAt": "2025-03-07T14:22:37.389Z"
}
```

| Field | Description |
|  --- | --- |
| `domainId` | Domain where the event was generated. |
| `payload` | Event-specific payload. The payload includes a `type` discriminator. |
| `id` | Unique event ID. |
| `sequenceNumber` | Event sequence number. Sequence numbers are strictly increasing, but may not be contiguous. |
| `savedAt` | Timestamp when the event was saved. |


For event-specific payload fields and event type names, see [Event payload reference](/pt-br/products/custody/reference/events-and-webhooks/event-payload-reference).

## Create a webhook channel

Call `POST /v1/domains/{domainId}/channels` to create a webhook channel.

API
```sh
curl -X POST "${CUSTODY_API_URL}/v1/domains/${DOMAIN_ID}/channels" \
  -H "Authorization: Bearer ${JWT_TOKEN}" \
  -H "Content-Type: application/json" \
  -d @create-webhook-channel.json
```

Java
```java
import com.ripple.custody.models.EDSChannel;
import com.ripple.custody.models.EDSWebhookChannelCreate;
import java.util.List;
import java.util.UUID;

EDSWebhookChannelCreate channel = new EDSWebhookChannelCreate(); // type is set to WEBHOOK
channel.setId(UUID.randomUUID());
channel.setName("My Webhook Channel");
channel.setSupportedEventTypes(List.of("IntentCreated", "IntentUpdated", "IntentClosed"));
channel.setCreatedBy(userId);
channel.setUrl("https://your-domain.com/webhook-endpoint");

EDSChannel created = client.webhooks().createChannel(domainId, channel);
```

The request body uses the `EDS_WebhookChannelCreate` schema:

```json
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "name": "My Webhook Channel",
  "supportedEventTypes": [
    "IntentCreated",
    "IntentUpdated",
    "IntentClosed"
  ],
  "createdBy": "b7c8d9e0-f1a2-3456-bcde-f23456789012",
  "type": "WEBHOOK",
  "url": "https://your-domain.com/webhook-endpoint"
}
```

### Create request fields

| Field | Type | Required | Description |
|  --- | --- | --- | --- |
| `id` | string, UUID | Yes | Unique identifier for the webhook channel. |
| `name` | string | Yes | Descriptive channel name. |
| `supportedEventTypes` | array of strings | Yes | Event `payload.type` values to subscribe to. |
| `createdBy` | string, UUID | Yes | User ID for the user creating the channel. |
| `type` | string | Yes | Channel type. For webhooks, use `WEBHOOK`. |
| `url` | string | Yes | Webhook endpoint URL where events are sent. |
| `status` | string | No | Initial channel status. Supported values are `ACTIVE` and `DISABLED`. |
| `maxRetries` | integer | No | Maximum number of retry attempts for failed webhook deliveries. |


The API returns the created channel:

```json
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "domainId": "25aaec0d-e8dc-44b6-8070-9231f1ddadf0",
  "name": "My Webhook Channel",
  "supportedEventTypes": [
    "IntentCreated",
    "IntentUpdated",
    "IntentClosed"
  ],
  "type": "WEBHOOK",
  "status": "ACTIVE",
  "maxRetries": 3,
  "url": "https://your-domain.com/webhook-endpoint",
  "createdBy": "b7c8d9e0-f1a2-3456-bcde-f23456789012",
  "lastUpdatedBy": "b7c8d9e0-f1a2-3456-bcde-f23456789012",
  "createdAt": "2025-03-07T14:22:37.389Z",
  "lastUpdatedAt": "2025-03-07T14:22:37.389Z",
  "errorRate": 0
}
```

### Channel response fields

| Field | Description |
|  --- | --- |
| `id` | Unique channel ID. |
| `domainId` | Domain that owns the channel. |
| `name` | Channel name. |
| `supportedEventTypes` | Event types subscribed by the channel. |
| `type` | Channel type. Webhook channel responses use `WEBHOOK`. |
| `status` | Channel status. Supported response values are `ACTIVE` and `DISABLED`. |
| `maxRetries` | Maximum number of retry attempts for failed webhook deliveries. |
| `url` | Webhook endpoint URL. |
| `createdBy` | User ID for the user who created the channel. |
| `lastUpdatedBy` | User ID for the user who last updated the channel. |
| `createdAt` | Timestamp when the channel was created. |
| `lastUpdatedAt` | Timestamp when the channel was last updated. |
| `errorRate` | Webhook delivery error rate. |


## List webhook channels

Call `GET /v1/domains/{domainId}/channels` to retrieve all webhook channels for a domain.

API
```sh
curl -X GET "${CUSTODY_API_URL}/v1/domains/${DOMAIN_ID}/channels" \
  -H "Authorization: Bearer ${JWT_TOKEN}"
```

Java
```java
List<EDSChannel> channels = client.webhooks().listChannels(domainId);
```

The response is an array of channel objects.

## Get webhook channel details

Call `GET /v1/domains/{domainId}/channels/{channelId}` to retrieve one webhook channel.

API
```sh
curl -X GET "${CUSTODY_API_URL}/v1/domains/${DOMAIN_ID}/channels/${CHANNEL_ID}" \
  -H "Authorization: Bearer ${JWT_TOKEN}"
```

Java
```java
EDSChannel channel = client.webhooks().getChannel(domainId, channelId);
```

The response is a channel object.

## Update a webhook channel

Call `PATCH /v1/domains/{domainId}/channels/{channelId}` to update a webhook channel. Include only the fields you need to change.

API
```sh
curl -X PATCH "${CUSTODY_API_URL}/v1/domains/${DOMAIN_ID}/channels/${CHANNEL_ID}" \
  -H "Authorization: Bearer ${JWT_TOKEN}" \
  -H "Content-Type: application/json" \
  -d @update-webhook-channel.json
```

Java
```java
import com.ripple.custody.models.EDSChannelUpdate;

EDSChannelUpdate update = new EDSChannelUpdate()
    .name("Operations Webhook Channel")
    .supportedEventTypes(List.of("IntentCreated", "IntentUpdated", "IntentClosed"))
    .maxRetries(3)
    .lastUpdatedBy(userId);

EDSChannel updated = client.webhooks().updateChannel(domainId, channelId, update);
```

Always set `supportedEventTypes` when you build an `EDSChannelUpdate`. The model initializes it to an empty list, so an update that omits it sends an empty list.

Don't set `status` with `EDSChannelUpdate` in this SDK version. Its `StatusEnum` sends lowercase values, which the API rejects. To enable or disable a channel, use the API.

The request body uses the `EDS_ChannelUpdate` schema:

```json
{
  "name": "Operations Webhook Channel",
  "supportedEventTypes": [
    "IntentCreated",
    "IntentUpdated",
    "IntentClosed"
  ],
  "status": "ACTIVE",
  "maxRetries": 3,
  "lastUpdatedBy": "b7c8d9e0-f1a2-3456-bcde-f23456789012"
}
```

| Field | Type | Description |
|  --- | --- | --- |
| `name` | string | New channel name. |
| `supportedEventTypes` | array of strings | New list of event types to subscribe to. |
| `status` | string | New channel status. Supported values are `ACTIVE` and `DISABLED`. |
| `maxRetries` | integer | New maximum number of retry attempts for failed webhook deliveries. |
| `lastUpdatedBy` | string, UUID | User ID for the user updating the channel. |


The `status` value is case sensitive. Use uppercase `ACTIVE` and `DISABLED` in update requests. Lowercase values are rejected with a `400` error.

The API returns the updated channel object.

## Test a webhook channel

Call `POST /v1/domains/{domainId}/channels/{channelId}/test` to test a webhook channel. The operation does not define a request body.

API
```sh
curl -X POST "${CUSTODY_API_URL}/v1/domains/${DOMAIN_ID}/channels/${CHANNEL_ID}/test" \
  -H "Authorization: Bearer ${JWT_TOKEN}"
```

Java
```java
client.webhooks().testChannel(domainId, channelId);
```

The API returns `200 OK` when the test request is accepted.

## Delete a webhook channel

Call `DELETE /v1/domains/{domainId}/channels/{channelId}` to delete a webhook channel. The operation does not define a request body.

API
```sh
curl -X DELETE "${CUSTODY_API_URL}/v1/domains/${DOMAIN_ID}/channels/${CHANNEL_ID}" \
  -H "Authorization: Bearer ${JWT_TOKEN}"
```

Java
```java
client.webhooks().deleteChannel(domainId, channelId);
```

The API returns `200 OK` when the channel is deleted.

## Track webhook delivery events

EDS delivery events are operational records for webhook delivery attempts. They are different from the event payload sent to your webhook endpoint.

| Task | Endpoint |
|  --- | --- |
| List delivery events across all channels in a domain | `GET /v1/domains/{domainId}/channels/events` |
| List delivery events for one channel | `GET /v1/domains/{domainId}/channels/{channelId}/events` |
| Get one delivery event | `GET /v1/domains/{domainId}/channels/{channelId}/events/{eventId}` |


API
List all delivery events across channels:

```sh
curl -X GET "${CUSTODY_API_URL}/v1/domains/${DOMAIN_ID}/channels/events" \
  -H "Authorization: Bearer ${JWT_TOKEN}"
```

List delivery events for one channel:

```sh
curl -X GET "${CUSTODY_API_URL}/v1/domains/${DOMAIN_ID}/channels/${CHANNEL_ID}/events" \
  -H "Authorization: Bearer ${JWT_TOKEN}"
```

Get one delivery event:

```sh
curl -X GET "${CUSTODY_API_URL}/v1/domains/${DOMAIN_ID}/channels/${CHANNEL_ID}/events/${EVENT_ID}" \
  -H "Authorization: Bearer ${JWT_TOKEN}"
```

Java
```java
import com.ripple.custody.models.EDSEvent;

// Delivery events across all channels in the domain
List<EDSEvent> allEvents = client.webhooks().listEvents(domainId);

// Delivery events for one channel
List<EDSEvent> channelEvents = client.webhooks().listChannelEvents(domainId, channelId);

// One delivery event
EDSEvent event = client.webhooks().getChannelEvent(domainId, channelId, eventId);
```

Delivery event list operations return an array of `EDS_Event` objects. The delivery event detail operation returns one `EDS_Event` object.

```json
{
  "id": "c0c54215-77e8-4e8f-8b0f-b3d60269f2f7",
  "channelId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "channelName": "My Webhook Channel",
  "type": "IntentCreated",
  "status": "FAILED",
  "createdAt": "2025-03-07T14:22:37.389Z",
  "lastUpdatedAt": "2025-03-07T14:22:40.889Z",
  "retriedCount": 3,
  "payload": "{\"id\":\"35e4d8d9-f943-484b-865c-c736679ba0cc\",\"type\":\"IntentCreated\"}"
}
```

| Field | Description |
|  --- | --- |
| `id` | Unique delivery event ID. |
| `channelId` | Webhook channel ID. |
| `channelName` | Webhook channel name. |
| `type` | Event type associated with the delivery event. |
| `status` | Delivery status. Supported values are `PENDING`, `SUCCESS`, and `FAILED`. |
| `createdAt` | Timestamp when the delivery event was created. |
| `lastUpdatedAt` | Timestamp when the delivery event was last updated. |
| `retriedCount` | Number of retry attempts recorded for the delivery event. |
| `payload` | Event payload stored as a string. |


## Delivery behavior

Webhook delivery is designed so that you don't miss events, not so that each event arrives exactly once or in order. Build your webhook consumer around the guarantees in this section, not around the delivery pattern you observe in testing: timing, retries, and recovery after an outage change the order and number of the deliveries you receive.

### Delivery guarantees

| Guarantee | What it means for your consumer |
|  --- | --- |
| At-least-once delivery | Your endpoint can receive the same event more than once, for example when Ripple Custody (Vault) re-sends an event that stayed in `PENDING`. Deduplicate by the top-level `id` of the callback payload, which stays the same each time Ripple Custody (Vault) delivers the same event. On one channel, the `webhook-id` header also stays the same across retries and re-sends. See [Verify webhook signatures](/pt-br/products/custody/operations-and-maintenance/events-and-webhooks/verify-webhook-signatures#verify-a-delivery). |
| No ordering guarantee | Ripple Custody (Vault) normally delivers events in order: it waits until an event is delivered or has finally failed, including its retries, before it sends the next one. But when an event can't be handled because a Ripple Custody (Vault) component, such as the signing service or the database, is unavailable, a separate process retries it, and it can arrive after events that were created later. Re-sent pending events can also arrive late. To process events in order, sort by `sequenceNumber`. To act on the current state of an entity, retrieve it with the relevant API. |
| Domain-scoped delivery | A webhook channel receives only events from the domain where you created it, not events from its subdomains. To receive events from several domains, create a channel in each domain. Events that don't belong to a domain aren't sent to webhooks. |
| Automatic re-send of pending events | Every minute, Ripple Custody (Vault) re-sends events that have stayed in `PENDING` for more than 10 minutes. These events can arrive minutes or longer after they were created. |


Fewer duplicate deliveries
Ripple Custody (Vault) doesn't send an event again after it delivered it successfully or marked it `FAILED`. This change was introduced in 1.34.24 and 1.43.5. Versions 1.43.0 to 1.43.4 don't include it, so if you upgrade from one of them, your endpoint receives fewer duplicates.

The callback payload doesn't say which field of an entity changed. For example, Ripple Custody (Vault) emits `TransactionUpdated` for every processing status change and every ledger status change of a transaction. For details, see [Transaction events](/pt-br/products/custody/reference/events-and-webhooks/event-payload-reference#transaction-events).

### Retry behavior

1. Ripple Custody (Vault) sends the event to your webhook endpoint.
2. If the attempt fails with a retryable error, Ripple Custody (Vault) waits and tries again, with a longer wait before each attempt.
3. When the last attempt fails, or the attempt fails with an error that isn't retryable, Ripple Custody (Vault) marks the delivery event as `FAILED`. Ripple Custody (Vault) doesn't retry a `FAILED` delivery event automatically.


The default retry settings are:

| Setting | Default | Description |
|  --- | --- | --- |
| Maximum attempts | 3 | Total number of delivery attempts, including the first one. |
| Initial interval | 500 ms | Wait time before the second attempt. |
| Multiplier | 2 | Factor applied to the wait time before each later attempt. |
| Maximum interval | 5000 ms | Upper limit for the wait time between attempts. |


With the default settings, Ripple Custody (Vault) waits 500 ms before the second attempt and 1000 ms before the third attempt.

Retry settings apply to the whole Ripple Custody (Vault) instance. To change them, contact your Ripple partner engineer. The `maxRetries` field of a webhook channel doesn't change the number of delivery attempts.

### Response timeout

Your endpoint must respond within 10 seconds. If it doesn't, Ripple Custody (Vault) treats the attempt as failed and retries it.

### HTTP status code handling

| Response | Behavior |
|  --- | --- |
| `2xx` | Delivery successful. The delivery event moves to `SUCCESS`. |
| `3xx` | Delivery failed. Ripple Custody (Vault) doesn't follow redirects, doesn't retry, and marks the delivery event as `FAILED` after this attempt. The delivery error records the status code. |
| `408` or `429` | Delivery failed. Ripple Custody (Vault) retries. |
| Any other `4xx`, including `410` | Delivery failed. Ripple Custody (Vault) doesn't retry and marks the delivery event as `FAILED` after this attempt. |
| `5xx` | Delivery failed. Ripple Custody (Vault) retries. |
| Timeout or connection error | Delivery failed. Ripple Custody (Vault) retries. |


Redirects fail delivery
Before version 1.44, Ripple Custody (Vault) recorded a `3xx` response as a successful delivery, although the event never reached your endpoint. From version 1.44, a `3xx` response is a failed delivery that isn't retried. If your webhook URL redirects, for example from HTTP to HTTPS or to a new path, update the channel URL to the final destination.

Return `2xx` only after your system has stored the event. Return a `4xx` status code other than `408` or `429` only when you don't want Ripple Custody (Vault) to retry the event. If your endpoint is temporarily unable to process events, return `503` or `429` so that Ripple Custody (Vault) retries.

### Rate limiting

Webhook deliveries are not rate-limited by default. Design your endpoint to handle:

- Multiple concurrent webhook deliveries.
- Bursts of events during high activity periods, including re-sent pending events after an outage.
- Retry attempts for failed deliveries.


If your endpoint cannot keep up with event volume, consider:

- Implementing a queue to buffer incoming webhooks.
- Scaling your webhook receiver horizontally.
- Using AMQP queues instead for guaranteed delivery and backpressure handling.


## Handle failed deliveries

Ripple Custody (Vault) doesn't retry `FAILED` delivery events automatically. Use EDS delivery events, the Events API, and any configured AMQP integration to recover them:

1. Check delivery event records for `FAILED` status.
2. Use `retriedCount` and `lastUpdatedAt` to understand retry activity.
3. Use [List events](/pt-br/products/custody/reference/api/openapi/events/getevents) with `sortBy=sequenceNumber` to reconcile the event history your system processed.
4. Page through Events API results with `startingAfter`; the Events API schema does not define time-range filters.
5. If your deployment includes an AMQP queue integration, inspect the queue to recover missed events. Contact [Ripple support](/pt-br/products/custody/support/get-support) for help with AMQP-based recovery.
6. Process any missing event IDs or sequence numbers in your integration.


## Review the channel audit trail

From version 1.44, Ripple Custody (Vault) records every attempt to create, update, or delete a webhook channel in an append-only audit trail. Use it to see what changed on your channels and who changed it, and as evidence for your auditors that nobody redirected your webhooks without authorization. The audit trail is available through the API only.

Call `GET /v1/domains/{domainId}/channel-audit-events` to retrieve the audit trail for a domain. You must have the `eds-manager` role for the domain. The endpoint returns every record for the domain, newest first, with no paging or filtering.

```sh
curl -X GET "${CUSTODY_API_URL}/v1/domains/${DOMAIN_ID}/channel-audit-events" \
  -H "Authorization: Bearer ${JWT_TOKEN}"
```

The response is an array of audit records. The following example shows a successful update that renamed a channel and raised its `maxRetries`:

```json
[
  {
    "id": "29c7cba9-bb27-4289-a8a9-fd6574511ea7",
    "channelId": "94e48678-651d-4eb5-ae31-1f43a75a6b15",
    "action": "UPDATE",
    "outcome": "SUCCESS",
    "initiator": "harmonize:jane.doe@example.com",
    "oldConfig": {
      "id": "94e48678-651d-4eb5-ae31-1f43a75a6b15",
      "domainId": "30362b18-1a89-4f49-9c82-d01bbc59e220",
      "name": "Payments webhook",
      "type": "WEBHOOK",
      "url": "https://your-domain.com/webhook-endpoint",
      "status": "DISABLED",
      "maxRetries": 3,
      "supportedEventTypes": ["IntentUpdated", "IntentClosed"],
      "errorRate": null,
      "createdAt": "2026-11-16T16:39:06.797901Z",
      "createdBy": "eeca2204-1cd7-4fbd-a66a-153b18d20f67",
      "lastUpdatedAt": null,
      "lastUpdatedBy": null
    },
    "newConfig": {
      "id": "94e48678-651d-4eb5-ae31-1f43a75a6b15",
      "domainId": "30362b18-1a89-4f49-9c82-d01bbc59e220",
      "name": "Payments webhook (prod)",
      "type": "WEBHOOK",
      "url": "https://your-domain.com/webhook-endpoint",
      "status": "DISABLED",
      "maxRetries": 5,
      "supportedEventTypes": ["IntentUpdated", "IntentClosed"],
      "errorRate": null,
      "createdAt": "2026-11-16T16:39:06.797901Z",
      "createdBy": "eeca2204-1cd7-4fbd-a66a-153b18d20f67",
      "lastUpdatedAt": "2026-11-16T16:39:08.188649831Z",
      "lastUpdatedBy": "eeca2204-1cd7-4fbd-a66a-153b18d20f67"
    },
    "createdAt": "2026-11-16T16:39:08.189405Z"
  }
]
```

The following example shows three refused requests: a rejected create, a rejected create whose request carried an invalid channel ID, and a denied update:

```json
[
  {
    "id": "4e81bcfa-16bc-4da7-8e3f-b5b8187eb28f",
    "channelId": "3c3e860c-64ed-438a-9476-6eda0ca6f6cc",
    "action": "CREATE",
    "outcome": "REJECTED",
    "initiator": "harmonize:jane.doe@example.com",
    "oldConfig": null,
    "newConfig": {
      "id": "3c3e860c-64ed-438a-9476-6eda0ca6f6cc",
      "name": null,
      "type": "WEBHOOK",
      "url": "https://your-domain.com/webhook-endpoint",
      "status": null,
      "maxRetries": null,
      "supportedEventTypes": ["IntentUpdated"],
      "createdBy": "eeca2204-1cd7-4fbd-a66a-153b18d20f67"
    },
    "createdAt": "2026-11-16T16:39:09.466819Z"
  },
  {
    "id": "a39bd190-b815-49cf-ae23-a2d4b6787b50",
    "channelId": null,
    "action": "CREATE",
    "outcome": "REJECTED",
    "initiator": "harmonize:jane.doe@example.com",
    "oldConfig": null,
    "newConfig": null,
    "createdAt": "2026-11-16T16:39:10.681886Z"
  },
  {
    "id": "048873e1-12c3-4b1e-81a6-1bfadf943185",
    "channelId": "94e48678-651d-4eb5-ae31-1f43a75a6b15",
    "action": "UPDATE",
    "outcome": "DENIED",
    "initiator": "harmonize:jane.doe@example.com",
    "oldConfig": null,
    "newConfig": null,
    "createdAt": "2026-11-16T16:39:14.408696Z"
  }
]
```

| Field | Description |
|  --- | --- |
| `id` | Unique ID of the audit record. |
| `channelId` | The channel that the request targeted. `null` only if the request carried a channel ID that isn't a valid UUID. |
| `action` | `CREATE`, `UPDATE`, or `DELETE`. |
| `outcome` | One of the following:- `SUCCESS`: the change was applied. Ripple Custody (Vault) writes the record in the same transaction as the change, so a change without its audit record is never applied.- `DENIED`: the request was refused with `403 Forbidden`. The record omits the configuration: `oldConfig` and `newConfig` are `null`.- `REJECTED`: the request was refused with `400 Bad Request`. `newConfig` holds the configuration as requested, so some of its fields can be `null`. Only recorded for users who hold the role for the domain. |
| `initiator` | The authenticated user who made the request, taken from the JWT, for example `harmonize:jane.doe@example.com`. It isn't the user ID that appears in `createdBy` and `lastUpdatedBy`, and those fields in the request body aren't used for the audit trail. |
| `oldConfig` | The channel configuration before the change, with the fields described in [Channel response fields](#channel-response-fields). `null` for a create and for a `DENIED` record. |
| `newConfig` | The channel configuration after the change, or the requested configuration for a `REJECTED` record. `null` for a delete and for a `DENIED` record. |
| `createdAt` | Time of the request. |


A denied attempt is recorded under the domain that it targeted, so that domain's users can see it. Unauthenticated requests (`401 Unauthorized`) aren't recorded. Records remain after a channel is deleted, and Ripple Custody (Vault) keeps them indefinitely.

## Secure your webhook endpoint

Secure the endpoint that receives webhook callbacks:

- Verify the signature on every delivery. See [Verify webhook signatures](/pt-br/products/custody/operations-and-maintenance/events-and-webhooks/verify-webhook-signatures).
- Check that the `domainId` in each callback payload is the domain where you created the channel. The signature doesn't identify the domain, so without this check your endpoint could accept genuinely signed events forwarded from another domain on the same instance.
- Use HTTPS endpoints.
- Use IP allowlisting if required by your environment. Signature verification and an IP allowlist work together: the allowlist controls who can reach your endpoint, and the signature proves that the content came from Ripple Custody (Vault).
- Review the [channel audit trail](#review-the-channel-audit-trail) for unexpected changes to your channels.


Any user with the role to manage webhook channels for a domain can create, change, or delete its channels. To reduce the risk that a single user redirects your webhooks, require two approvers for assigning that role.

Want to manage webhooks with the UI instead? See [Manage webhooks in the UI](/pt-br/products/custody/operations-and-maintenance/events-and-webhooks/webhooks-ui).