Get an event
/v1/events/{eventId} Returns one event, by the id a list or a webhook gave you.
Only public event types are listed (see GET /webhooks/event-types), and only those the token may see: each type needs its group's read scope (servers:read for server events, sites:read for site events, account:read for API events). A token limited to some servers sees the events of those servers, and events of the account as a whole. An event the token may not see answers 404 not_found.
Scopes
The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).
-
events:read - View activity. Read the account's activity: what happened on its servers, sites and more.
Path parameters
| Field | Type and description |
|---|---|
eventId Required | string The event's id (a webhook payload's |
Example request
curl "https://api.rabbitflare.com/v1/events/5f0d2a7c-3b1e-4c8d-9a6f-2e7b1c4d5a60" \
-H "Authorization: Bearer $RABBITFLARE_TOKEN" const res = await fetch("https://api.rabbitflare.com/v1/events/5f0d2a7c-3b1e-4c8d-9a6f-2e7b1c4d5a60", {
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.events.get({ eventId: "5f0d2a7c-3b1e-4c8d-9a6f-2e7b1c4d5a60" });
console.log(data); <?php
$ch = curl_init('https://api.rabbitflare.com/v1/events/5f0d2a7c-3b1e-4c8d-9a6f-2e7b1c4d5a60');
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/events/5f0d2a7c-3b1e-4c8d-9a6f-2e7b1c4d5a60",
headers={
"Authorization": "Bearer " + os.environ["RABBITFLARE_TOKEN"],
},
timeout=120,
)
response.raise_for_status()
print(response.json()["data"]) Response
200 OK Returns the Event object in data.
The Event object's fields 17 fields
| Field | Type and description |
|---|---|
id | string The event's id. A webhook for this event carries the same id: use it to ignore a delivery you already handled. |
type | string What happened (see Known values: |
createdAt | string An ISO 8601 time, in UTC When it happened. |
level | string How it went: Known values: |
message | string What happened, as one sentence: the line the panel's Activity shows. For people to read; don't parse it. |
actor | object Who or what made the event happen. |
type | string Who did it: Known values: |
name | string or null The team member's or API token's name. |
server | object or null The server it was about, or |
id | string Its id. |
name | string Its name. |
site | object or null The site it was about, or |
id | string Its id. |
name | string Its name. |
mailDomain | object or null The mail domain it was about, or |
id | string Its id. |
name | string Its name. |
Example response
{
"data": {
"id": "5f0d2a7c-3b1e-4c8d-9a6f-2e7b1c4d5a60",
"type": "site.ready",
"createdAt": "2026-11-18T08:46:49.000Z",
"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
}
} 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. |