Skip to content

Webhooks

Get told when something happens, at a URL of yours.

Operations

OperationRequest
List event types GET /v1/webhooks/event-types
List webhook endpoints GET /v1/webhooks/endpoints
Add a webhook endpoint POST /v1/webhooks/endpoints
Get a webhook endpoint GET /v1/webhooks/endpoints/{endpointId}
Change a webhook endpoint PATCH /v1/webhooks/endpoints/{endpointId}
Delete a webhook endpoint DELETE /v1/webhooks/endpoints/{endpointId}
Rotate an endpoint's signing secret POST /v1/webhooks/endpoints/{endpointId}/actions/rotate-secret
Send a test event POST /v1/webhooks/endpoints/{endpointId}/actions/send-test
List an endpoint's deliveries GET /v1/webhooks/endpoints/{endpointId}/deliveries
Get a delivery GET /v1/webhooks/deliveries/{deliveryId}
Send a delivery again POST /v1/webhooks/deliveries/{deliveryId}/actions/redeliver

The EventType object

One kind of event: its name, its group and what it means.

FieldType and description
type

string

The event type, as events and webhooks name it.

Known values: server.createdserver.readyserver.provisioning_failedserver.powered_onserver.powered_offserver.rebootedserver.resizedserver.snapshot_createdserver.snapshot_deletedserver.restoredserver.unreachableserver.missingserver.suspendedserver.resumedserver.deletedserver.security_enabledserver.security_disabledserver.security_failedsite.createdsite.readysite.install_failedsite.deletedsite.delete_failedsite.domain_addedsite.domain_verifiedsite.domain_removedsite.primary_domain_changedsite.domains_updatedsite.domains_failedsite.cdn_enabledsite.cdn_disabledsite.cdn_failedsite.cdn_purgedsite.cdn_purge_failedsite.cdn_hostname_readysite.cdn_hostname_failedsite.clonedsite.clone_failedsite.resources_updatedsite.resources_failedsite.firewall_updatedsite.firewall_failedmedia_offload.enabledmedia_offload.disabledmedia_offload.failedmedia_offload.run_completedmedia_offload.run_failedsmtp.enabledsmtp.disabledsmtp.pausedsmtp.resumedrabbitpress.installedrabbitpress.removedrabbitpress.failedbackup.startedbackup.completedbackup.failedbackup.restore_startedbackup.restoredbackup.restore_failedbackup.delete_failedstaging.createdstaging.refreshedstaging.pushedstaging.push_undonestaging.failedstaging.deletedstaging.needs_attentionmalware_protection.enabledmalware_protection.disabledmalware.foundmalware.cleanedmalware.warningticket.openedticket.answeredapi_token.createdapi_token.revokedwebhook_endpoint.disabledping More can appear.

category

string

The group it belongs to: servers, sites, backups, staging, domains, billing, mail, support or api.

Known values: serverssitesbackupsstagingmalwaresupportapi More can appear.

description

string

What it means, in one line.

Example

The EventType object
{
  "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.

FieldType 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 null.

events

array of strings

The event types sent to it (see GET /webhooks/event-types), or ["*"] for every type, including types added later. An endpoint added through the API is sent only the types its token may read now.

allServers

boolean

Whether it gets events of every server (and of account-wide things). False: only those in serverIds, and account-wide events.

serverIds

array of strings

The servers whose events it gets, when allServers is false. Empty when allServers is true.

status

string

enabled: events are sent to it. disabled: nothing is sent until it's turned on again.

Known values: enableddisabled More can appear.

disabledReason

string or null

Why it's off: user, token, failing or admin. null while it's on.

Known values: usertokenfailingadmin More can appear.

failingSince

string or null An ISO 8601 time, in UTC

Since when its deliveries have failed with no success in between. null: it isn't failing. After 5 days of failures it's turned off.

lastSuccessAt

string or null An ISO 8601 time, in UTC

When a delivery to it last succeeded, or null.

lastFailureAt

string or null An ISO 8601 time, in UTC

When a delivery attempt to it last failed, or null.

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

The WebhookEndpoint object
{
  "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.

FieldType 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 null.

events

array of strings

The event types sent to it (see GET /webhooks/event-types), or ["*"] for every type, including types added later. An endpoint added through the API is sent only the types its token may read now.

allServers

boolean

Whether it gets events of every server (and of account-wide things). False: only those in serverIds, and account-wide events.

serverIds

array of strings

The servers whose events it gets, when allServers is false. Empty when allServers is true.

status

string

enabled: events are sent to it. disabled: nothing is sent until it's turned on again.

Known values: enableddisabled More can appear.

disabledReason

string or null

Why it's off: user, token, failing or admin. null while it's on.

Known values: usertokenfailingadmin More can appear.

failingSince

string or null An ISO 8601 time, in UTC

Since when its deliveries have failed with no success in between. null: it isn't failing. After 5 days of failures it's turned off.

lastSuccessAt

string or null An ISO 8601 time, in UTC

When a delivery to it last succeeded, or null.

lastFailureAt

string or null An ISO 8601 time, in UTC

When a delivery attempt to it last failed, or null.

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 (rfwhsec_ and 32 characters). Shown this once: keep it where your receiver can read it. Each delivery's Rabbitflare-Signature header is made with it.

Example

The WebhookEndpointWithSecret object
{
  "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.

FieldType and description
id

string

The delivery's id (the Rabbitflare-Delivery-Id header).

endpointId

string

The endpoint it was sent to.

eventId

string

The event's id (the payload's id): the same for every endpoint and every attempt. A test event's starts with ping_.

eventType

string

The event's type.

state

string

pending (an attempt is due), succeeded (your endpoint answered 2xx) or failed (it gave up after 8 attempts, the endpoint answered 410 Gone, or the endpoint was turned off).

Known values: pendingsucceededfailed More can appear.

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 pending; otherwise null.

lastStatus

integer or null

The HTTP status your endpoint last answered, or null (no answer: a timeout, a refused connection, or no attempt yet).

lastError

string or null

Why the last attempt failed, in words, or null.

deliveredAt

string or null An ISO 8601 time, in UTC

When it succeeded, or null.

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 Rabbitflare-Signature header.

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: server.createdserver.readyserver.provisioning_failedserver.powered_onserver.powered_offserver.rebootedserver.resizedserver.snapshot_createdserver.snapshot_deletedserver.restoredserver.unreachableserver.missingserver.suspendedserver.resumedserver.deletedserver.security_enabledserver.security_disabledserver.security_failedsite.createdsite.readysite.install_failedsite.deletedsite.delete_failedsite.domain_addedsite.domain_verifiedsite.domain_removedsite.primary_domain_changedsite.domains_updatedsite.domains_failedsite.cdn_enabledsite.cdn_disabledsite.cdn_failedsite.cdn_purgedsite.cdn_purge_failedsite.cdn_hostname_readysite.cdn_hostname_failedsite.clonedsite.clone_failedsite.resources_updatedsite.resources_failedsite.firewall_updatedsite.firewall_failedmedia_offload.enabledmedia_offload.disabledmedia_offload.failedmedia_offload.run_completedmedia_offload.run_failedsmtp.enabledsmtp.disabledsmtp.pausedsmtp.resumedrabbitpress.installedrabbitpress.removedrabbitpress.failedbackup.startedbackup.completedbackup.failedbackup.restore_startedbackup.restoredbackup.restore_failedbackup.delete_failedstaging.createdstaging.refreshedstaging.pushedstaging.push_undonestaging.failedstaging.deletedstaging.needs_attentionmalware_protection.enabledmalware_protection.disabledmalware.foundmalware.cleanedmalware.warningticket.openedticket.answeredapi_token.createdapi_token.revokedwebhook_endpoint.disabledping More can appear.

apiVersion

string

The API version the payload follows: v1.

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
FieldType and description
level

string

How it went: info, success, warning or error.

Known values: infosuccesswarningerror More can appear.

message

string

What happened, as one sentence for people.

actor

object

Who or what made the event happen.

type

string

Who did it: user (a person in the panel), api_token (a call with an API token), system (Rabbitflare on its own) or support (Rabbitflare's support team).

Known values: userapi_tokensystemsupport More can appear.

name

string or null

The team member's or API token's name. null for the account's owner, for Rabbitflare and for support.

server

object or null

The server it was about, or null.

id

string

Its id.

name

string

Its name.

site

object or null

The site it was about, or null.

id

string

Its id.

name

string

Its name.

mailDomain

object or null

The mail domain it was about, or null.

id

string

Its id.

name

string

Its name.

resource

object

The most specific thing an event is about, and where to read its full state.

type

string

The kind of thing: site, server, domain (a registered domain), mail_domain, account, or webhook_endpoint (in webhook_endpoint.disabled, the endpoint turned off).

Known values: siteserverdomainmail_domainaccountwebhook_endpoint More can appear.

id

string

Its id.

url

string or null

Where to read it with the API, or null when there is no single resource to read. Always null for a webhook_endpoint: read it by its id (GET /webhooks/endpoints/{id}, with webhooks:read).

responseExcerpt

string or null

The first 1 KB of your endpoint's last answer, or null.

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 null when it didn't answer.

ms

integer

How long it took, in milliseconds.

error

string or null

Why it failed, in words, or null when it succeeded.

Example

The WebhookDeliveryDetail object
{
  "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.

FieldType and description
id

string

The delivery's id (the Rabbitflare-Delivery-Id header).

endpointId

string

The endpoint it was sent to.

eventId

string

The event's id (the payload's id): the same for every endpoint and every attempt. A test event's starts with ping_.

eventType

string

The event's type.

state

string

pending (an attempt is due), succeeded (your endpoint answered 2xx) or failed (it gave up after 8 attempts, the endpoint answered 410 Gone, or the endpoint was turned off).

Known values: pendingsucceededfailed More can appear.

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 pending; otherwise null.

lastStatus

integer or null

The HTTP status your endpoint last answered, or null (no answer: a timeout, a refused connection, or no attempt yet).

lastError

string or null

Why the last attempt failed, in words, or null.

deliveredAt

string or null An ISO 8601 time, in UTC

When it succeeded, or null.

createdAt

string An ISO 8601 time, in UTC

When it was queued.

Example

The WebhookDelivery object
{
  "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"
}

Popular

API docs