*Cloud*

# The webhook object

An HTTPS address that receives the project's events. Every delivery is signed with the project's webhook secret.

## Attributes

- `whk` (string): The webhook's id. You choose it when you create the webhook.
- `url` (string): Where deliveries go. https only; private addresses are refused.
- `events` (array): The events it receives. Empty: every event.
- `enabled` (boolean): False pauses deliveries.
- `healthy` (boolean): False after several failed deliveries in a row.
- `delivered_pct_24h` (number): Share of deliveries answered 2xx in the last 24 hours.

## Example

```json
{
  "data": {
    "whk": "whk_01jdk5j2k4l6z8x0c2v4b6n8mq",
    "url": "https://hooks.acme.com/dispra",
    "events": ["deploy.succeeded", "deploy.failed"],
    "enabled": true,
    "healthy": true,
    "delivered_pct_24h": 100
  }
}
```

## Endpoints

- `PUT` [Create or update a webhook](https://docs.dispralabs.com/api/create-or-update-a-webhook.md)
- `DELETE` [Delete a webhook](https://docs.dispralabs.com/api/delete-a-webhook.md)
- `GET` [List a webhook's deliveries](https://docs.dispralabs.com/api/list-a-webhook-s-deliveries.md)
- `GET` [List webhooks](https://docs.dispralabs.com/api/list-webhooks.md)
- `POST` [Send a test event](https://docs.dispralabs.com/api/send-a-test-event.md)
