List events
/v1/events Lists what happened on the account, newest first: the same events webhooks send, with the same ids. Use it to catch up after downtime, or instead of webhooks when polling suits you better.
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.
Filter by type (comma-separated; server.* for a family), serverId, siteId, level, and a time range with since and until. Pages are stable: an event that happens while you page never makes another one repeat. Events are ordered by when they started being recorded, so an event can appear a few seconds after newer ones.
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.
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: |
type | string Up to 1,000 characters Only events of these types: one or more, separated by commas. A type ending in |
serverId | string Only events about this server (and its sites). |
siteId | string Only events about this site. |
level | string Only events of this level. One of: |
since | string Only events from this time on (inclusive). |
until | string Only events before this time. |
Example request
curl "https://api.rabbitflare.com/v1/events?type=site.*&limit=25" \
-H "Authorization: Bearer $RABBITFLARE_TOKEN" const res = await fetch("https://api.rabbitflare.com/v1/events?type=site.*&limit=25", {
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.events.list({ type: "site.*", limit: 25 })) {
console.log(item);
} <?php
$ch = curl_init('https://api.rabbitflare.com/v1/events?type=site.*&limit=25');
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/events",
headers={
"Authorization": "Bearer " + os.environ["RABBITFLARE_TOKEN"],
},
params={
"type": "site.*",
"limit": "25",
},
timeout=120,
)
response.raise_for_status()
answer = response.json()
print(answer["data"], answer["pagination"]["nextCursor"]) Response
200 OK Returns a list of Event objects in data, with a Pagination object in pagination.
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
}
],
"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. |