Send a test event
/v1/webhooks/endpoints/{endpointId}/actions/send-test Sends a ping event to the endpoint, signed like any other, and answers the delivery: within about 12 seconds its first attempt has usually been made, so state, lastStatus and responseExcerpt show how your endpoint answered. Otherwise it answers while the delivery is still pending; read it again with GET /webhooks/deliveries/{deliveryId}.
The endpoint must be turned on (409 invalid_state otherwise). A test event goes to this endpoint only.
Scopes
The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).
-
webhooks:write - Manage webhooks. Add, change and remove webhook endpoints.
Headers
| Field | Type and description |
|---|---|
Idempotency-Key | string 1 to 255 characters A key of your own for this request, like a UUID: letters, digits and |
Path parameters
| Field | Type and description |
|---|---|
endpointId Required | string The endpoint's id. |
Example request
curl -X POST "https://api.rabbitflare.com/v1/webhooks/endpoints/3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b/actions/send-test" \
-H "Authorization: Bearer $RABBITFLARE_TOKEN" const res = await fetch("https://api.rabbitflare.com/v1/webhooks/endpoints/3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b/actions/send-test", {
method: "POST",
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.endpoints.sendTest({
endpointId: "3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b",
});
console.log(data); <?php
$ch = curl_init('https://api.rabbitflare.com/v1/webhooks/endpoints/3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b/actions/send-test');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
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.post(
"https://api.rabbitflare.com/v1/webhooks/endpoints/3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b/actions/send-test",
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": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b",
"endpointId": "3c6f9a1e-2b4d-4e8f-9a0b-1c2d3e4f5a6b",
"eventId": "ping_2c7d9e1f-4a3b-4c5d-8e6f-7a8b9c0d1e2f",
"eventType": "ping",
"state": "succeeded",
"attempts": 1,
"nextAttemptAt": null,
"lastStatus": 200,
"lastError": null,
"deliveredAt": "2026-11-18T10:02:12.000Z",
"createdAt": "2026-11-18T10:02:11.000Z",
"payload": {
"id": "ping_2c7d9e1f-4a3b-4c5d-8e6f-7a8b9c0d1e2f",
"type": "ping",
"apiVersion": "v1",
"createdAt": "2026-11-18T10:02:11.000Z",
"accountId": "0b9f2c1e-5d0b-4b53-9a7e-2f1a3a6d7b11",
"data": {
"level": "info",
"message": "A test event from Rabbitflare.",
"actor": {
"type": "user",
"name": null
},
"server": null,
"site": null,
"mailDomain": null,
"resource": {
"type": "account",
"id": "0b9f2c1e-5d0b-4b53-9a7e-2f1a3a6d7b11",
"url": "https://api.rabbitflare.com/v1/account"
}
}
},
"responseExcerpt": "ok",
"attemptLog": [
{
"at": "2026-11-18T10:02:12.000Z",
"status": 200,
"ms": 164,
"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. |
409 invalid_ | The resource's status doesn't allow this now (for example, powering on a server that is running). Check the resource's |
429 rate_ | Too many requests. Wait for Retry-After seconds, then go on more slowly. |