List an endpoint's deliveries
/v1/webhooks/endpoints/{endpointId}/deliveries Lists the deliveries to one endpoint from the last 30 days, newest first (order=asc: oldest first). Filter by state (to find failed ones to send again) or eventType. The payload and the attempts are in GET /webhooks/deliveries/{deliveryId}.
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.
Path parameters
| Field | Type and description |
|---|---|
endpointId Required | string The endpoint's id. |
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: |
state | string Only deliveries in this state. One of: |
eventType | string Up to 100 characters Only deliveries of this event type. |
Example request
curl "https://api.rabbitflare.com/v1/webhooks/endpoints/3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b/deliveries?state=failed" \
-H "Authorization: Bearer $RABBITFLARE_TOKEN" const res = await fetch("https://api.rabbitflare.com/v1/webhooks/endpoints/3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b/deliveries?state=failed", {
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.deliveries.list({
endpointId: "3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b",
state: "failed",
})) {
console.log(item);
} <?php
$ch = curl_init('https://api.rabbitflare.com/v1/webhooks/endpoints/3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b/deliveries?state=failed');
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/3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b/deliveries",
headers={
"Authorization": "Bearer " + os.environ["RABBITFLARE_TOKEN"],
},
params={
"state": "failed",
},
timeout=120,
)
response.raise_for_status()
answer = response.json()
print(answer["data"], answer["pagination"]["nextCursor"]) Response
200 OK Returns a list of WebhookDelivery objects in data, with a Pagination object in pagination.
The WebhookDelivery object's fields 11 fields
| 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 response
{
"data": [
{
"id": "8d2e4f6a-1b3c-4d5e-8f9a-0b1c2d3e4f5a",
"endpointId": "3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b",
"eventId": "5f0d2a7c-3b1e-4c8d-9a6f-2e7b1c4d5a60",
"eventType": "site.ready",
"state": "failed",
"attempts": 8,
"nextAttemptAt": null,
"lastStatus": 500,
"lastError": "Your server answered 500.",
"deliveredAt": null,
"createdAt": "2026-11-18T08:46:50.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. |
404 not_ | The resource doesn't exist, or isn't this account's. Check the id. Ids of other accounts' resources answer the same way. |