Get a delivery
/v1/webhooks/deliveries/{deliveryId} Returns one delivery in full: the payload that was sent (the same bytes on every attempt), the first 1 KB of your endpoint's last answer, and the last 10 attempts.
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 |
|---|---|
deliveryId Required | string The delivery's id (the |
Example request
curl "https://api.rabbitflare.com/v1/webhooks/deliveries/8d2e4f6a-1b3c-4d5e-8f9a-0b1c2d3e4f5a" \
-H "Authorization: Bearer $RABBITFLARE_TOKEN" const res = await fetch("https://api.rabbitflare.com/v1/webhooks/deliveries/8d2e4f6a-1b3c-4d5e-8f9a-0b1c2d3e4f5a", {
headers: {
Authorization: `Bearer ${process.env.RABBITFLARE_TOKEN}`,
},
});
if (!res.ok) throw new Error(`Rabbitflare API error ${res.status}: ${await res.text()}`);
const { data } = await res.json();
console.log(data); import { Rabbitflare } from "@rabbitflare/api";
const rf = new Rabbitflare({ token: process.env.RABBITFLARE_TOKEN });
const data = await rf.webhooks.deliveries.get({
deliveryId: "8d2e4f6a-1b3c-4d5e-8f9a-0b1c2d3e4f5a",
});
console.log(data); <?php
$ch = curl_init('https://api.rabbitflare.com/v1/webhooks/deliveries/8d2e4f6a-1b3c-4d5e-8f9a-0b1c2d3e4f5a');
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");
}
print_r(json_decode($body, true)['data']); import os
import requests
response = requests.get(
"https://api.rabbitflare.com/v1/webhooks/deliveries/8d2e4f6a-1b3c-4d5e-8f9a-0b1c2d3e4f5a",
headers={
"Authorization": "Bearer " + os.environ["RABBITFLARE_TOKEN"],
},
timeout=120,
)
response.raise_for_status()
print(response.json()["data"]) Response
200 OK Returns the WebhookDeliveryDetail object in data.
The WebhookDeliveryDetail object's fields 42 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. | ||||||||||||||||||||||||||||||||||||||
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 response
{
"data": {
"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
}
]
}
} 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 |
|---|---|
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. |