> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://docs.prividium.com/api/mcp` to find what you need.
>
> **Have feedback?** Use `submit_feedback` on the same MCP server.

# webhooks

Webhook management endpoints

## List webhook deliveries

`GET /v1/webhook-deliveries`

List webhook deliveries through the internal webhook service

### Query parameters

- `limit` `integer`: The maximum number of items to return.
- `offset` `integer`: The number of items to skip before the first returned item.
- `status` `string`: Return only deliveries with this status: `pending`, `success`, or `failed`.

### Responses

#### `200`: Default Response

Body (`application/json`):

- `id` `integer` _(required)_: ID of the delivery.
- `subscription` `string` _(required)_: ID of the subscription that produced the delivery.
- `chain_name` `string` _(required)_: Name of the chain the delivery comes from.
- `endpoint_id` `string` _(required)_: Endpoint ID of the webhook the delivery is sent to.
- `endpoint_name` `string` _(required)_: Name of the webhook the delivery is sent to.
- `user_id` `string` _(required)_: ID of the user who owns the webhook.
- `webhook_type` `string` _(required)_: Kind of webhook: `event` for an event webhook or `address` for an address webhook.
- `attempts` `integer` _(required)_: Number of delivery attempts made.
- `dead_letter` `boolean` _(required)_: Whether the webhook service moved the delivery to its dead-letter queue.
- `next_attempt_at` `string <date-time>` _(required)_: Time of the next scheduled attempt, or null when none is scheduled.
- `delivery_status` `string` _(required)_: Delivery state: `pending` (not delivered yet), `success` (delivered), or `failed` (delivery failed).
- `last_http_status_code` `integer` _(required)_: HTTP status code the endpoint returned on the last attempt, or null when there is none.
- `last_failure_reason` `string | null`: Reason the last attempt failed, or null when there is none.
- `last_attempt_at` `string <date-time>`: Time of the last attempt, or null when no attempt was made.
- `payload_available` `boolean` _(required)_: Whether the webhook service still retains the original payload.
- `can_resend` `boolean` _(required)_: Whether the delivery can be resent.
- `created_at` `string <date-time>` _(required)_: Time the delivery was created.
- `updated_at` `string <date-time>` _(required)_: Time the delivery was last updated.

### Example request

```bash
curl '/api/v1/webhook-deliveries?limit=50&offset=0&status=pending'
```

```ts
fetch('/api/v1/webhook-deliveries?limit=50&offset=0&status=pending')
```

## Resend a webhook delivery

`POST /v1/webhook-deliveries/{id}/resend`

Resend a failed webhook delivery through the internal webhook service

### Path parameters

- `id` `integer` _(required)_: ID of the delivery to resend.

### Responses

#### `202`: Default Response

Body (`application/json`):

- `id` `integer` _(required)_: ID of the delivery.
- `subscription` `string` _(required)_: ID of the subscription that produced the delivery.
- `chain_name` `string` _(required)_: Name of the chain the delivery comes from.
- `endpoint_id` `string` _(required)_: Endpoint ID of the webhook the delivery is sent to.
- `endpoint_name` `string` _(required)_: Name of the webhook the delivery is sent to.
- `user_id` `string` _(required)_: ID of the user who owns the webhook.
- `webhook_type` `string` _(required)_: Kind of webhook: `event` for an event webhook or `address` for an address webhook.
- `attempts` `integer` _(required)_: Number of delivery attempts made.
- `dead_letter` `boolean` _(required)_: Whether the webhook service moved the delivery to its dead-letter queue.
- `next_attempt_at` `string <date-time>` _(required)_: Time of the next scheduled attempt, or null when none is scheduled.
- `delivery_status` `string` _(required)_: Delivery state: `pending` (not delivered yet), `success` (delivered), or `failed` (delivery failed).
- `last_http_status_code` `integer` _(required)_: HTTP status code the endpoint returned on the last attempt, or null when there is none.
- `last_failure_reason` `string | null`: Reason the last attempt failed, or null when there is none.
- `last_attempt_at` `string <date-time>`: Time of the last attempt, or null when no attempt was made.
- `payload_available` `boolean` _(required)_: Whether the webhook service still retains the original payload.
- `can_resend` `boolean` _(required)_: Whether the delivery can be resent.
- `created_at` `string <date-time>` _(required)_: Time the delivery was created.
- `updated_at` `string <date-time>` _(required)_: Time the delivery was last updated.

### Example request

```bash
curl /api/v1/webhook-deliveries/0/resend \
  --request POST
```

```ts
fetch('/api/v1/webhook-deliveries/0/resend', {
  method: 'POST'
})
```

## List event webhooks

`GET /v1/event-webhook`

List event webhooks through the internal webhook service

### Query parameters

- `limit` `integer`: The maximum number of items to return.
- `offset` `integer`: The number of items to skip before the first returned item.

### Responses

#### `200`: Default Response

Body (`application/json`):

- `endpoint` `object` _(required)_: Delivery endpoint of the webhook.
  - `id` `string <uuid>` _(required)_: Endpoint ID of the webhook.
  - `name` `string` _(required)_: Display name of the webhook.
  - `url` `string` _(required)_: URL the webhook service sends deliveries to.
  - `signing_key` `string | null`: Secret that signs deliveries, returned only when the webhook is created.
  - `enabled` `boolean` _(required)_: Whether the webhook service sends deliveries to the endpoint.
  - `deactivation_reason` `string | null`: Reason the webhook service suspended the endpoint, such as `consecutive_delivery_failures`, `http_410_gone`, or `prividium_auth_revoked`, or null when the service did not suspend it.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `subscription` `object` _(required)_: Event subscription of the webhook.
  - `id` `string <uuid>`: ID of the subscription.
  - `endpoint_id` `string <uuid>`: Endpoint ID of the webhook the subscription belongs to.
  - `chain_name` `string`: Name of the chain the subscription watches.
  - `chain_id` `integer`: Chain ID of the chain the subscription watches.
  - `contract` `string`: Contract address whose events the subscription matches.
  - `topic0` `string`: Event signature hash (topic 0) the subscription matches.
  - `from_block` `integer`: Block number the subscription starts matching from.
  - `status` `string`: State of the subscription in the webhook service, such as `active`.
  - `decode_events` `boolean`: Whether deliveries include decoded event data.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `user_id` `string` _(required)_: ID of the user who owns the webhook.

### Example request

```bash
curl '/api/v1/event-webhook?limit=20&offset=0'
```

```ts
fetch('/api/v1/event-webhook?limit=20&offset=0')
```

## Create an event webhook

`POST /v1/event-webhook`

Create an event webhook through the internal webhook service

### Request body (required) (`application/json`)

- `name` `string` _(required)_: Display name of the webhook.
- `url` `string <uri>` _(required)_: URL the webhook service sends deliveries to.
- `contract` `string` _(required)_: Contract address whose events trigger deliveries.
- `topic0` `string` _(required)_: Event signature hash (topic 0) that triggers deliveries.
- `from_block` `integer`: Block number to start matching from.
- `decode_events` `boolean`: Whether deliveries include decoded event data.
- `rpc_url` `string <uri>`: RPC URL the webhook service reads the chain from for this webhook.

### Responses

#### `201`: Default Response

Body (`application/json`):

- `endpoint` `object` _(required)_: Delivery endpoint of the webhook.
  - `id` `string <uuid>` _(required)_: Endpoint ID of the webhook.
  - `name` `string` _(required)_: Display name of the webhook.
  - `url` `string` _(required)_: URL the webhook service sends deliveries to.
  - `signing_key` `string | null`: Secret that signs deliveries, returned only when the webhook is created.
  - `enabled` `boolean` _(required)_: Whether the webhook service sends deliveries to the endpoint.
  - `deactivation_reason` `string | null`: Reason the webhook service suspended the endpoint, such as `consecutive_delivery_failures`, `http_410_gone`, or `prividium_auth_revoked`, or null when the service did not suspend it.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `subscription` `object` _(required)_: Event subscription of the webhook.
  - `id` `string <uuid>`: ID of the subscription.
  - `endpoint_id` `string <uuid>`: Endpoint ID of the webhook the subscription belongs to.
  - `chain_name` `string`: Name of the chain the subscription watches.
  - `chain_id` `integer`: Chain ID of the chain the subscription watches.
  - `contract` `string`: Contract address whose events the subscription matches.
  - `topic0` `string`: Event signature hash (topic 0) the subscription matches.
  - `from_block` `integer`: Block number the subscription starts matching from.
  - `status` `string`: State of the subscription in the webhook service, such as `active`.
  - `decode_events` `boolean`: Whether deliveries include decoded event data.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `user_id` `string` _(required)_: ID of the user who owns the webhook.

### Example request

```bash
curl /api/v1/event-webhook \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "string",
  "url": "string",
  "contract": "string",
  "topic0": "string",
  "from_block": 0,
  "decode_events": true,
  "rpc_url": "string"
}'
```

```ts
fetch('/api/v1/event-webhook', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: 'string',
    url: 'string',
    contract: 'string',
    topic0: 'string',
    from_block: 0,
    decode_events: true,
    rpc_url: 'string'
  })
})
```

## Get an event webhook

`GET /v1/event-webhook/{id}`

Get event webhook details through the internal webhook service

### Path parameters

- `id` `string <uuid>` _(required)_: Endpoint ID of the webhook, from `endpoint.id`.

### Responses

#### `200`: Default Response

Body (`application/json`):

- `endpoint` `object` _(required)_: Delivery endpoint of the webhook.
  - `id` `string <uuid>` _(required)_: Endpoint ID of the webhook.
  - `name` `string` _(required)_: Display name of the webhook.
  - `url` `string` _(required)_: URL the webhook service sends deliveries to.
  - `signing_key` `string | null`: Secret that signs deliveries, returned only when the webhook is created.
  - `enabled` `boolean` _(required)_: Whether the webhook service sends deliveries to the endpoint.
  - `deactivation_reason` `string | null`: Reason the webhook service suspended the endpoint, such as `consecutive_delivery_failures`, `http_410_gone`, or `prividium_auth_revoked`, or null when the service did not suspend it.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `subscription` `object` _(required)_: Event subscription of the webhook.
  - `id` `string <uuid>`: ID of the subscription.
  - `endpoint_id` `string <uuid>`: Endpoint ID of the webhook the subscription belongs to.
  - `chain_name` `string`: Name of the chain the subscription watches.
  - `chain_id` `integer`: Chain ID of the chain the subscription watches.
  - `contract` `string`: Contract address whose events the subscription matches.
  - `topic0` `string`: Event signature hash (topic 0) the subscription matches.
  - `from_block` `integer`: Block number the subscription starts matching from.
  - `status` `string`: State of the subscription in the webhook service, such as `active`.
  - `decode_events` `boolean`: Whether deliveries include decoded event data.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `user_id` `string` _(required)_: ID of the user who owns the webhook.

### Example request

```bash
curl /api/v1/event-webhook/00000000-0000-0000-0000-000000000000
```

```ts
fetch('/api/v1/event-webhook/00000000-0000-0000-0000-000000000000')
```

## Update an event webhook

`PATCH /v1/event-webhook/{id}`

Update an event webhook through the internal webhook service

### Path parameters

- `id` `string <uuid>` _(required)_: Endpoint ID of the webhook, from `endpoint.id`.

### Request body (`application/json`)

- `name` `string | null`: New display name of the webhook.
- `url` `string <uri>`: New URL the webhook service sends deliveries to.
- `enabled` `boolean | null`: Set to `false` to pause deliveries or `true` to resume them.
- `decode_events` `boolean | null`: Whether deliveries include decoded event data.

### Responses

#### `200`: Default Response

Body (`application/json`):

- `endpoint` `object` _(required)_: Delivery endpoint of the webhook.
  - `id` `string <uuid>` _(required)_: Endpoint ID of the webhook.
  - `name` `string` _(required)_: Display name of the webhook.
  - `url` `string` _(required)_: URL the webhook service sends deliveries to.
  - `signing_key` `string | null`: Secret that signs deliveries, returned only when the webhook is created.
  - `enabled` `boolean` _(required)_: Whether the webhook service sends deliveries to the endpoint.
  - `deactivation_reason` `string | null`: Reason the webhook service suspended the endpoint, such as `consecutive_delivery_failures`, `http_410_gone`, or `prividium_auth_revoked`, or null when the service did not suspend it.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `subscription` `object` _(required)_: Event subscription of the webhook.
  - `id` `string <uuid>`: ID of the subscription.
  - `endpoint_id` `string <uuid>`: Endpoint ID of the webhook the subscription belongs to.
  - `chain_name` `string`: Name of the chain the subscription watches.
  - `chain_id` `integer`: Chain ID of the chain the subscription watches.
  - `contract` `string`: Contract address whose events the subscription matches.
  - `topic0` `string`: Event signature hash (topic 0) the subscription matches.
  - `from_block` `integer`: Block number the subscription starts matching from.
  - `status` `string`: State of the subscription in the webhook service, such as `active`.
  - `decode_events` `boolean`: Whether deliveries include decoded event data.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `user_id` `string` _(required)_: ID of the user who owns the webhook.

### Example request

```bash
curl /api/v1/event-webhook/00000000-0000-0000-0000-000000000000 \
  --request PATCH \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "string",
  "url": "string",
  "enabled": true,
  "decode_events": true
}'
```

```ts
fetch('/api/v1/event-webhook/00000000-0000-0000-0000-000000000000', {
  method: 'PATCH',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: 'string',
    url: 'string',
    enabled: true,
    decode_events: true
  })
})
```

## Delete an event webhook

`DELETE /v1/event-webhook/{id}`

Delete an event webhook through the internal webhook service

### Path parameters

- `id` `string <uuid>` _(required)_: Endpoint ID of the webhook, from `endpoint.id`.

### Responses

#### `204`: Default Response

### Example request

```bash
curl /api/v1/event-webhook/00000000-0000-0000-0000-000000000000 \
  --request DELETE
```

```ts
fetch('/api/v1/event-webhook/00000000-0000-0000-0000-000000000000', {
  method: 'DELETE'
})
```

## Rotate an event webhook signing key

`POST /v1/event-webhook/{id}/signing-keys/rotate`

Rotate an event webhook signing key through the internal webhook service

### Path parameters

- `id` `string <uuid>` _(required)_: Endpoint ID of the webhook, from `endpoint.id`.

### Request body (`application/json`)

- `retire_after_secs` `integer`: Seconds the old and new keys both stay valid before the old key retires.
- `version` `string | null`: Signature version of the new key, currently `v1`.

### Responses

#### `201`: Default Response

Body (`application/json`):

- `signing_key` `string` _(required)_: New signing key, returned only in this response.
- `key_id` `integer` _(required)_: ID of the new signing key.
- `version` `string` _(required)_: Signature version of the new key.

### Example request

```bash
curl /api/v1/event-webhook/00000000-0000-0000-0000-000000000000/signing-keys/rotate \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "retire_after_secs": 0,
  "version": "string"
}'
```

```ts
fetch('/api/v1/event-webhook/00000000-0000-0000-0000-000000000000/signing-keys/rotate', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    retire_after_secs: 0,
    version: 'string'
  })
})
```

## List address webhooks

`GET /v1/address-webhook`

List address webhooks through the internal webhook service

### Query parameters

- `limit` `integer`: The maximum number of items to return.
- `offset` `integer`: The number of items to skip before the first returned item.

### Responses

#### `200`: Default Response

Body (`application/json`):

- `endpoint` `object` _(required)_: Delivery endpoint of the webhook.
  - `id` `string <uuid>` _(required)_: Endpoint ID of the webhook.
  - `name` `string` _(required)_: Display name of the webhook.
  - `url` `string` _(required)_: URL the webhook service sends deliveries to.
  - `signing_key` `string | null`: Secret that signs deliveries, returned only when the webhook is created.
  - `enabled` `boolean` _(required)_: Whether the webhook service sends deliveries to the endpoint.
  - `deactivation_reason` `string | null`: Reason the webhook service suspended the endpoint, such as `consecutive_delivery_failures`, `http_410_gone`, or `prividium_auth_revoked`, or null when the service did not suspend it.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `subscription` `object` _(required)_: Address subscription of the webhook.
  - `id` `string <uuid>`: ID of the subscription.
  - `endpoint_id` `string <uuid>`: Endpoint ID of the webhook the subscription belongs to.
  - `chain_name` `string`: Name of the chain the subscription watches.
  - `chain_id` `integer`: Chain ID of the chain the subscription watches.
  - `from_block` `integer`: Block number the subscription starts matching from.
  - `status` `string`: State of the subscription in the webhook service, such as `active`.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `user_id` `string` _(required)_: ID of the user who owns the webhook.

### Example request

```bash
curl '/api/v1/address-webhook?limit=20&offset=0'
```

```ts
fetch('/api/v1/address-webhook?limit=20&offset=0')
```

## Create an address webhook

`POST /v1/address-webhook`

Create an address webhook through the internal webhook service

### Request body (required) (`application/json`)

- `name` `string` _(required)_: Display name of the webhook.
- `url` `string <uri>` _(required)_: URL the webhook service sends deliveries to.
- `addresses` `string[]` _(required)_: EVM addresses to monitor.
- `from_block` `integer`: Block number to start matching from.

### Responses

#### `201`: Default Response

Body (`application/json`):

- `endpoint` `object` _(required)_: Delivery endpoint of the webhook.
  - `id` `string <uuid>` _(required)_: Endpoint ID of the webhook.
  - `name` `string` _(required)_: Display name of the webhook.
  - `url` `string` _(required)_: URL the webhook service sends deliveries to.
  - `signing_key` `string | null`: Secret that signs deliveries, returned only when the webhook is created.
  - `enabled` `boolean` _(required)_: Whether the webhook service sends deliveries to the endpoint.
  - `deactivation_reason` `string | null`: Reason the webhook service suspended the endpoint, such as `consecutive_delivery_failures`, `http_410_gone`, or `prividium_auth_revoked`, or null when the service did not suspend it.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `subscription` `object` _(required)_: Address subscription of the webhook.
  - `id` `string <uuid>`: ID of the subscription.
  - `endpoint_id` `string <uuid>`: Endpoint ID of the webhook the subscription belongs to.
  - `chain_name` `string`: Name of the chain the subscription watches.
  - `chain_id` `integer`: Chain ID of the chain the subscription watches.
  - `from_block` `integer`: Block number the subscription starts matching from.
  - `status` `string`: State of the subscription in the webhook service, such as `active`.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `user_id` `string` _(required)_: ID of the user who owns the webhook.

### Example request

```bash
curl /api/v1/address-webhook \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "string",
  "url": "string",
  "addresses": [
    "string"
  ],
  "from_block": 0
}'
```

```ts
fetch('/api/v1/address-webhook', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: 'string',
    url: 'string',
    addresses: ['string'],
    from_block: 0
  })
})
```

## Get an address webhook

`GET /v1/address-webhook/{id}`

Get address webhook details through the internal webhook service

### Path parameters

- `id` `string <uuid>` _(required)_: Endpoint ID of the webhook, from `endpoint.id`.

### Responses

#### `200`: Default Response

Body (`application/json`):

- `endpoint` `object` _(required)_: Delivery endpoint of the webhook.
  - `id` `string <uuid>` _(required)_: Endpoint ID of the webhook.
  - `name` `string` _(required)_: Display name of the webhook.
  - `url` `string` _(required)_: URL the webhook service sends deliveries to.
  - `signing_key` `string | null`: Secret that signs deliveries, returned only when the webhook is created.
  - `enabled` `boolean` _(required)_: Whether the webhook service sends deliveries to the endpoint.
  - `deactivation_reason` `string | null`: Reason the webhook service suspended the endpoint, such as `consecutive_delivery_failures`, `http_410_gone`, or `prividium_auth_revoked`, or null when the service did not suspend it.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `subscription` `object` _(required)_: Address subscription of the webhook.
  - `id` `string <uuid>`: ID of the subscription.
  - `endpoint_id` `string <uuid>`: Endpoint ID of the webhook the subscription belongs to.
  - `chain_name` `string`: Name of the chain the subscription watches.
  - `chain_id` `integer`: Chain ID of the chain the subscription watches.
  - `from_block` `integer`: Block number the subscription starts matching from.
  - `status` `string`: State of the subscription in the webhook service, such as `active`.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `user_id` `string` _(required)_: ID of the user who owns the webhook.

### Example request

```bash
curl /api/v1/address-webhook/00000000-0000-0000-0000-000000000000
```

```ts
fetch('/api/v1/address-webhook/00000000-0000-0000-0000-000000000000')
```

## Update an address webhook

`PATCH /v1/address-webhook/{id}`

Update an address webhook through the internal webhook service

### Path parameters

- `id` `string <uuid>` _(required)_: Endpoint ID of the webhook, from `endpoint.id`.

### Request body (`application/json`)

- `name` `string | null`: New display name of the webhook.
- `url` `string <uri>`: New URL the webhook service sends deliveries to.
- `enabled` `boolean | null`: Set to `false` to pause deliveries or `true` to resume them.

### Responses

#### `200`: Default Response

Body (`application/json`):

- `endpoint` `object` _(required)_: Delivery endpoint of the webhook.
  - `id` `string <uuid>` _(required)_: Endpoint ID of the webhook.
  - `name` `string` _(required)_: Display name of the webhook.
  - `url` `string` _(required)_: URL the webhook service sends deliveries to.
  - `signing_key` `string | null`: Secret that signs deliveries, returned only when the webhook is created.
  - `enabled` `boolean` _(required)_: Whether the webhook service sends deliveries to the endpoint.
  - `deactivation_reason` `string | null`: Reason the webhook service suspended the endpoint, such as `consecutive_delivery_failures`, `http_410_gone`, or `prividium_auth_revoked`, or null when the service did not suspend it.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `subscription` `object` _(required)_: Address subscription of the webhook.
  - `id` `string <uuid>`: ID of the subscription.
  - `endpoint_id` `string <uuid>`: Endpoint ID of the webhook the subscription belongs to.
  - `chain_name` `string`: Name of the chain the subscription watches.
  - `chain_id` `integer`: Chain ID of the chain the subscription watches.
  - `from_block` `integer`: Block number the subscription starts matching from.
  - `status` `string`: State of the subscription in the webhook service, such as `active`.
  - `created_at` `string <date-time>`: Time the record was created.
  - `updated_at` `string <date-time>`: Time the record was last updated.
- `user_id` `string` _(required)_: ID of the user who owns the webhook.

### Example request

```bash
curl /api/v1/address-webhook/00000000-0000-0000-0000-000000000000 \
  --request PATCH \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "string",
  "url": "string",
  "enabled": true
}'
```

```ts
fetch('/api/v1/address-webhook/00000000-0000-0000-0000-000000000000', {
  method: 'PATCH',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: 'string',
    url: 'string',
    enabled: true
  })
})
```

## Delete an address webhook

`DELETE /v1/address-webhook/{id}`

Delete an address webhook through the internal webhook service

### Path parameters

- `id` `string <uuid>` _(required)_: Endpoint ID of the webhook, from `endpoint.id`.

### Responses

#### `204`: Default Response

### Example request

```bash
curl /api/v1/address-webhook/00000000-0000-0000-0000-000000000000 \
  --request DELETE
```

```ts
fetch('/api/v1/address-webhook/00000000-0000-0000-0000-000000000000', {
  method: 'DELETE'
})
```

## List monitored addresses

`GET /v1/address-webhook/{id}/addresses`

List address webhook addresses through the internal webhook service

### Path parameters

- `id` `string <uuid>` _(required)_: Endpoint ID of the webhook, from `endpoint.id`.

### Responses

#### `200`: Default Response

Body (`application/json`):

- `addresses` `string[]` _(required)_: Addresses the webhook monitors.

### Example request

```bash
curl /api/v1/address-webhook/00000000-0000-0000-0000-000000000000/addresses
```

```ts
fetch('/api/v1/address-webhook/00000000-0000-0000-0000-000000000000/addresses')
```

## Add monitored addresses

`POST /v1/address-webhook/{id}/addresses`

Add addresses to an address webhook through the internal webhook service

### Path parameters

- `id` `string <uuid>` _(required)_: Endpoint ID of the webhook, from `endpoint.id`.

### Request body (required) (`application/json`)

- `addresses` `string[]` _(required)_: EVM addresses to add to or remove from the webhook.

### Responses

#### `204`: Default Response

### Example request

```bash
curl /api/v1/address-webhook/00000000-0000-0000-0000-000000000000/addresses \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "addresses": [
    "string"
  ]
}'
```

```ts
fetch('/api/v1/address-webhook/00000000-0000-0000-0000-000000000000/addresses', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    addresses: ['string']
  })
})
```

## Remove monitored addresses

`DELETE /v1/address-webhook/{id}/addresses`

Remove addresses from an address webhook through the internal webhook service

### Path parameters

- `id` `string <uuid>` _(required)_: Endpoint ID of the webhook, from `endpoint.id`.

### Request body (required) (`application/json`)

- `addresses` `string[]` _(required)_: EVM addresses to add to or remove from the webhook.

### Responses

#### `204`: Default Response

### Example request

```bash
curl /api/v1/address-webhook/00000000-0000-0000-0000-000000000000/addresses \
  --request DELETE \
  --header 'Content-Type: application/json' \
  --data '{
  "addresses": [
    "string"
  ]
}'
```

```ts
fetch('/api/v1/address-webhook/00000000-0000-0000-0000-000000000000/addresses', {
  method: 'DELETE',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    addresses: ['string']
  })
})
```

## Rotate an address webhook signing key

`POST /v1/address-webhook/{id}/signing-keys/rotate`

Rotate an address webhook signing key through the internal webhook service

### Path parameters

- `id` `string <uuid>` _(required)_: Endpoint ID of the webhook, from `endpoint.id`.

### Request body (`application/json`)

- `retire_after_secs` `integer`: Seconds the old and new keys both stay valid before the old key retires.
- `version` `string | null`: Signature version of the new key, currently `v1`.

### Responses

#### `201`: Default Response

Body (`application/json`):

- `signing_key` `string` _(required)_: New signing key, returned only in this response.
- `key_id` `integer` _(required)_: ID of the new signing key.
- `version` `string` _(required)_: Signature version of the new key.

### Example request

```bash
curl /api/v1/address-webhook/00000000-0000-0000-0000-000000000000/signing-keys/rotate \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "retire_after_secs": 0,
  "version": "string"
}'
```

```ts
fetch('/api/v1/address-webhook/00000000-0000-0000-0000-000000000000/signing-keys/rotate', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    retire_after_secs: 0,
    version: 'string'
  })
})
```
