List webhook endpoints
/v1/webhooks/endpoints Lists the account's webhook endpoints (at most 10), newest first. Never their signing secrets.
Scopes
The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).
-
webhooks:read - View webhooks. See webhook endpoints and their deliveries.
Query parameters
| Field | Type and description |
|---|---|
limit | integer 1 to 100 Default How many items to return, from 1 to 100. Default 25. |
cursor | string 1 to 1,024 characters The |
sort | string Default The field to sort by. Each list names the fields it can be sorted by. One of: |
order | string Default
One of: |
status | string Only endpoints with this status. One of: |
Example request
curl "https://api.rabbitflare.com/v1/webhooks/endpoints" \
-H "Authorization: Bearer $RABBITFLARE_TOKEN" const res = await fetch("https://api.rabbitflare.com/v1/webhooks/endpoints", {
headers: {
Authorization: `Bearer ${process.env.RABBITFLARE_TOKEN}`,
},
});
if (!res.ok) throw new Error(`Rabbitflare API error ${res.status}: ${await res.text()}`);
const { data, pagination } = await res.json();
console.log(data, pagination.nextCursor); import { Rabbitflare } from "@rabbitflare/api";
const rf = new Rabbitflare({ token: process.env.RABBITFLARE_TOKEN });
for await (const item of rf.webhooks.endpoints.list()) {
console.log(item);
} <?php
$ch = curl_init('https://api.rabbitflare.com/v1/webhooks/endpoints');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RABBITFLARE_TOKEN'),
],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($body === false || $status >= 400) {
throw new RuntimeException("Rabbitflare API error $status: $body");
}
$answer = json_decode($body, true);
print_r($answer['data']);
echo $answer['pagination']['nextCursor'] ?? 'Last page', PHP_EOL; import os
import requests
response = requests.get(
"https://api.rabbitflare.com/v1/webhooks/endpoints",
headers={
"Authorization": "Bearer " + os.environ["RABBITFLARE_TOKEN"],
},
timeout=120,
)
response.raise_for_status()
answer = response.json()
print(answer["data"], answer["pagination"]["nextCursor"]) Response
200 OK Returns a list of WebhookEndpoint objects in data, with a Pagination object in pagination.
The WebhookEndpoint object's fields 13 fields
| 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 response
{
"data": [
{
"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"
}
],
"pagination": {
"limit": 25,
"hasMore": false,
"nextCursor": null
}
} Errors
The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).
| Status and code | When, and what to do |
|---|---|
400 invalid_ | A query parameter is unknown or has a wrong value ( Correct or remove the parameter named in |
400 invalid_ | The cursor isn't one this list gave, or was made with other filters or another sort. Start again from the first page, or keep the filters and sort the cursor was made with. |