Webhooks
Get told when something happens, at a URL of yours.
Operations
| Operation | Request |
|---|---|
| List event types | GET / |
| List webhook endpoints | GET / |
| Add a webhook endpoint | POST / |
| Get a webhook endpoint | GET / |
| Change a webhook endpoint | PATCH / |
| Delete a webhook endpoint | DELETE / |
| Rotate an endpoint's signing secret | POST / |
| Send a test event | POST / |
| List an endpoint's deliveries | GET / |
| Get a delivery | GET / |
| Send a delivery again | POST / |
The EventType object
One kind of event: its name, its group and what it means.
| Field | Type and description |
|---|---|
type | string The event type, as events and webhooks name it. Known values: |
category | string The group it belongs to: Known values: |
description | string What it means, in one line. |
Example
{
"type": "site.ready",
"category": "sites",
"description": "A site finished installing and is live."
} The WebhookEndpoint object
A URL of yours that is told about events. Never its signing secret: that is answered only when the endpoint is made and when the secret is rotated.
| Field | Type and description |
|---|---|
id | string The endpoint's id. |
url | string Where events are sent: an https URL on port 443 or 8443. |
description | string or null Your own note about the endpoint, or |
events | array of strings The event types sent to it (see |
allServers | boolean Whether it gets events of every server (and of account-wide things). False: only those in |
serverIds | array of strings The servers whose events it gets, when |
status | string
Known values: |
disabledReason | string or null Why it's off: Known values: |
failingSince | string or null An ISO 8601 time, in UTC Since when its deliveries have failed with no success in between. |
lastSuccessAt | string or null An ISO 8601 time, in UTC When a delivery to it last succeeded, or |
lastFailureAt | string or null An ISO 8601 time, in UTC When a delivery attempt to it last failed, or |
createdAt | string An ISO 8601 time, in UTC When it was added. |
updatedAt | string An ISO 8601 time, in UTC When its settings last changed. |
Example
{
"id": "3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b",
"url": "https://hooks.example.com/rabbitflare",
"description": "Deploy notifications",
"events": [
"server.ready",
"site.ready",
"site.install_failed"
],
"allServers": true,
"serverIds": [],
"status": "enabled",
"disabledReason": null,
"failingSince": null,
"lastSuccessAt": "2026-11-18T09:12:03.000Z",
"lastFailureAt": null,
"createdAt": "2026-11-18T08:46:49.000Z",
"updatedAt": "2026-11-18T08:46:49.000Z"
} The WebhookEndpointWithSecret object
A webhook endpoint with its signing secret, answered only when the endpoint is made and when its secret is rotated.
| Field | Type and description |
|---|---|
id | string The endpoint's id. |
url | string Where events are sent: an https URL on port 443 or 8443. |
description | string or null Your own note about the endpoint, or |
events | array of strings The event types sent to it (see |
allServers | boolean Whether it gets events of every server (and of account-wide things). False: only those in |
serverIds | array of strings The servers whose events it gets, when |
status | string
Known values: |
disabledReason | string or null Why it's off: Known values: |
failingSince | string or null An ISO 8601 time, in UTC Since when its deliveries have failed with no success in between. |
lastSuccessAt | string or null An ISO 8601 time, in UTC When a delivery to it last succeeded, or |
lastFailureAt | string or null An ISO 8601 time, in UTC When a delivery attempt to it last failed, or |
createdAt | string An ISO 8601 time, in UTC When it was added. |
updatedAt | string An ISO 8601 time, in UTC When its settings last changed. |
secret | string The endpoint's signing secret ( |
Example
{
"id": "3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b",
"url": "https://hooks.example.com/rabbitflare",
"description": "Deploy notifications",
"events": [
"server.ready",
"site.ready",
"site.install_failed"
],
"allServers": true,
"serverIds": [],
"status": "enabled",
"disabledReason": null,
"failingSince": null,
"lastSuccessAt": "2026-11-18T09:12:03.000Z",
"lastFailureAt": null,
"createdAt": "2026-11-18T08:46:49.000Z",
"updatedAt": "2026-11-18T08:46:49.000Z",
"secret": "rfwhsec_7Kq2mPq4Xc7Lw9Tn0Bv3YsA1b2C3d4E5"
} The WebhookDeliveryDetail object
One delivery in full: what was sent (byte for byte the same on every attempt), your endpoint's last answer, and the attempts.
| Field | Type and description | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string The delivery's id (the | ||||||||||||||||||||||||||||||||||||||
endpointId | string The endpoint it was sent to. | ||||||||||||||||||||||||||||||||||||||
eventId | string The event's id (the payload's | ||||||||||||||||||||||||||||||||||||||
eventType | string The event's type. | ||||||||||||||||||||||||||||||||||||||
state | string
Known values: | ||||||||||||||||||||||||||||||||||||||
attempts | integer Attempts made so far. | ||||||||||||||||||||||||||||||||||||||
nextAttemptAt | string or null An ISO 8601 time, in UTC When the next attempt is due, while it's | ||||||||||||||||||||||||||||||||||||||
lastStatus | integer or null The HTTP status your endpoint last answered, or | ||||||||||||||||||||||||||||||||||||||
lastError | string or null Why the last attempt failed, in words, or | ||||||||||||||||||||||||||||||||||||||
deliveredAt | string or null An ISO 8601 time, in UTC When it succeeded, or | ||||||||||||||||||||||||||||||||||||||
createdAt | string An ISO 8601 time, in UTC When it was queued. | ||||||||||||||||||||||||||||||||||||||
payload | object The JSON body of a webhook call. Thin on purpose: what happened, who did it, where, and a link to the resource; read the resource with the API for its full state. Signed in the | ||||||||||||||||||||||||||||||||||||||
id | string The event's id: the same for every endpoint and every attempt. Remember it to ignore an event you've handled. | ||||||||||||||||||||||||||||||||||||||
type | string The event type. Known values: | ||||||||||||||||||||||||||||||||||||||
apiVersion | string The API version the payload follows: | ||||||||||||||||||||||||||||||||||||||
createdAt | string An ISO 8601 time, in UTC When the event happened. | ||||||||||||||||||||||||||||||||||||||
accountId | string The account it happened on. | ||||||||||||||||||||||||||||||||||||||
data | object Who did what, where, and the resource to read for the full state. Show its 7 fields
| ||||||||||||||||||||||||||||||||||||||
responseExcerpt | string or null The first 1 KB of your endpoint's last answer, or | ||||||||||||||||||||||||||||||||||||||
attemptLog | array of objects The last 10 attempts, oldest first. | ||||||||||||||||||||||||||||||||||||||
at | string An ISO 8601 time, in UTC When the attempt was made. | ||||||||||||||||||||||||||||||||||||||
status | integer or null The HTTP status your endpoint answered, or | ||||||||||||||||||||||||||||||||||||||
ms | integer How long it took, in milliseconds. | ||||||||||||||||||||||||||||||||||||||
error | string or null Why it failed, in words, or |
Example
{
"id": "8d2e4f6a-1b3c-4d5e-8f9a-0b1c2d3e4f5a",
"endpointId": "3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b",
"eventId": "5f0d2a7c-3b1e-4c8d-9a6f-2e7b1c4d5a60",
"eventType": "site.ready",
"state": "succeeded",
"attempts": 1,
"nextAttemptAt": null,
"lastStatus": 200,
"lastError": null,
"deliveredAt": "2026-11-18T08:46:51.000Z",
"createdAt": "2026-11-18T08:46:50.000Z",
"payload": {
"id": "5f0d2a7c-3b1e-4c8d-9a6f-2e7b1c4d5a60",
"type": "site.ready",
"apiVersion": "v1",
"createdAt": "2026-11-18T08:46:49.000Z",
"accountId": "0b9f2c1e-5d0b-4b53-9a7e-2f1a3a6d7b11",
"data": {
"level": "success",
"message": "“Blog” is live at https://blog-k3x9q.rabbitflare.link",
"actor": {
"type": "system",
"name": null
},
"server": {
"id": "6f0c6c0e-5d0b-4b53-9a7e-2f1a3a6d7b11",
"name": "web-1"
},
"site": {
"id": "9b1e4f2a-7c3d-4e5f-8a9b-0c1d2e3f4a5b",
"name": "Blog"
},
"mailDomain": null,
"resource": {
"type": "site",
"id": "9b1e4f2a-7c3d-4e5f-8a9b-0c1d2e3f4a5b",
"url": "https://api.rabbitflare.com/v1/sites/9b1e4f2a-7c3d-4e5f-8a9b-0c1d2e3f4a5b"
}
}
},
"responseExcerpt": "ok",
"attemptLog": [
{
"at": "2026-11-18T08:46:51.000Z",
"status": 200,
"ms": 182,
"error": null
}
]
} The WebhookDelivery object
One event sent (or to be sent) to one endpoint: where it stands and how its last attempt went.
| Field | Type and description |
|---|---|
id | string The delivery's id (the |
endpointId | string The endpoint it was sent to. |
eventId | string The event's id (the payload's |
eventType | string The event's type. |
state | string
Known values: |
attempts | integer Attempts made so far. |
nextAttemptAt | string or null An ISO 8601 time, in UTC When the next attempt is due, while it's |
lastStatus | integer or null The HTTP status your endpoint last answered, or |
lastError | string or null Why the last attempt failed, in words, or |
deliveredAt | string or null An ISO 8601 time, in UTC When it succeeded, or |
createdAt | string An ISO 8601 time, in UTC When it was queued. |
Example
{
"id": "8d2e4f6a-1b3c-4d5e-8f9a-0b1c2d3e4f5a",
"endpointId": "3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b",
"eventId": "5f0d2a7c-3b1e-4c8d-9a6f-2e7b1c4d5a60",
"eventType": "site.ready",
"state": "succeeded",
"attempts": 1,
"nextAttemptAt": null,
"lastStatus": 200,
"lastError": null,
"deliveredAt": "2026-11-18T08:46:51.000Z",
"createdAt": "2026-11-18T08:46:50.000Z"
}