# Webhook endpoints

> Where Ballast sends events, and their delivery log. 7 REST endpoints with parameters, permissions and curl examples. Each is also an MCP tool.

Canonical: https://ballast.to/docs/api/webhook-endpoints

[API reference](https://ballast.to/docs/api)

Where Ballast sends events, and their delivery log. 7 endpoints, each also a tool for your AI through [MCP](https://ballast.to/docs/mcp). Authentication and errors are on the [overview](https://ballast.to/docs/api#authentication).

## List webhook endpoints

GET

/api/v1/webhooks

With delivery counts for the last 7 days. Signing secrets are never listed.

MCP tool

list\_webhooks

Read-only

Returns

- **`webhooks` required object\[\]**
- **`events` required object\[\]**

cURL

```
curl https://ballast.to/api/v1/webhooks \
  -H "Authorization: Bearer $BALLAST_API_KEY"
```

## Add a webhook endpoint

POST

/api/v1/webhooks

Ballast POSTs JSON to the URL for each chosen event, signed with the returned secret (header Ballast-Signature: t=\<unix\>,v1=\<HMAC-SHA256 hex of "\<t\>.\<body\>"\>). The secret is shown once here; reveal it later in Settings.

MCP tool

create\_webhook

Owners and admins

Parameters

- **`url` required string**
- **`description` string**
- **`events` required "lead.replied" | "lead.labeled" | "lead.bounced" | "lead.unsubscribed" | "lead.complained" | "lead.won" | "campaign.paused"\[\]**

Returns

- **`webhook` required object**
- **`secret` required string**

cURL

```
curl -X POST https://ballast.to/api/v1/webhooks \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<url>","events":"lead.replied"}'
```

## Change a webhook's URL, events or on/off

PATCH

/api/v1/webhooks/{id}

Turning an endpoint back on clears the failure count.

MCP tool

update\_webhook

Owners and admins

Parameters

- **`id` required path · string**
- **`url` string**
- **`description` string | null**
- **`events` "lead.replied" | "lead.labeled" | "lead.bounced" | "lead.unsubscribed" | "lead.complained" | "lead.won" | "campaign.paused"\[\]**
- **`enabled` boolean**

Returns

- **`id` required string**
- **`url` required string**
- **`description` required string | null**
- **`events` required "lead.replied" | "lead.labeled" | "lead.bounced" | "lead.unsubscribed" | "lead.complained" | "lead.won" | "campaign.paused"\[\]**
- **`enabled` required boolean**
- **`disabledReason` required string | null**: Why Ballast turned it off, when it did
- **`lastDeliveryAt` required string | null**
- **`lastStatus` required number | null**: HTTP status of the last attempt, 0 when the endpoint didn't answer
- **`delivered` required number**
- **`failed` required number**
- **`pending` required number**
- **`createdAt` required string**

cURL

```
curl -X PATCH https://ballast.to/api/v1/webhooks/<id> \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<url>","description":{}}'
```

## Remove a webhook endpoint

DELETE

/api/v1/webhooks/{id}

Pending deliveries to it are dropped.

MCP tool

delete\_webhook

Owners and admins

MCP asks to confirm

Parameters

- **`id` required path · string**

Returns

- **`ok` required true**

cURL

```
curl -X DELETE https://ballast.to/api/v1/webhooks/<id> \
  -H "Authorization: Bearer $BALLAST_API_KEY"
```

## Send a test event now

POST

/api/v1/webhooks/{id}/test

POSTs a signed sample lead.replied event (marked test: true) and returns the endpoint's answer. Not retried.

MCP tool

test\_webhook

Owners and admins

Parameters

- **`id` required path · string**

Returns

- **`delivered` required boolean**
- **`status` required number**
- **`error` required string | null**
- **`body` required string**
- **`ms` required number**

cURL

```
curl -X POST https://ballast.to/api/v1/webhooks/<id>/test \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Recent deliveries to an endpoint

GET

/api/v1/webhooks/{id}/deliveries

Newest first, the last 30 days, with the payload as sent.

MCP tool

list\_webhook\_deliveries

Read-only

Parameters

- **`id` required path · string**
- **`limit` query · integer**

Returns

- **`deliveries` required object\[\]**

cURL

```
curl https://ballast.to/api/v1/webhooks/<id>/deliveries \
  -H "Authorization: Bearer $BALLAST_API_KEY"
```

## Send a failed delivery again

POST

/api/v1/webhooks/deliveries/{id}/redeliver

Queues it with a fresh set of retries.

Owners and admins

Parameters

- **`id` required path · string**

Returns

- **`ok` required true**

cURL

```
curl -X POST https://ballast.to/api/v1/webhooks/deliveries/<id>/redeliver \
  -H "Authorization: Bearer $BALLAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
