List support tickets
/v1/tickets Lists the account's support tickets, the most recently active first (by lastMessageAt), without their conversations: GET /tickets/{ticketRef} has a ticket's messages. The 200 most recently active tickets are listed; an older one is read by its id.
A token limited to some servers lists the account's general tickets and those about its servers.
Scopes
The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).
-
support:read - View tickets. Read this account's support tickets.
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: |
status | string Only tickets in this status: One of: |
Example request
curl "https://api.rabbitflare.com/v1/tickets?status=answered" \
-H "Authorization: Bearer $RABBITFLARE_TOKEN" const res = await fetch("https://api.rabbitflare.com/v1/tickets?status=answered", {
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.tickets.list({ status: "answered" })) {
console.log(item);
} <?php
$ch = curl_init('https://api.rabbitflare.com/v1/tickets?status=answered');
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/tickets",
headers={
"Authorization": "Bearer " + os.environ["RABBITFLARE_TOKEN"],
},
params={
"status": "answered",
},
timeout=120,
)
response.raise_for_status()
answer = response.json()
print(answer["data"], answer["pagination"]["nextCursor"]) Response
200 OK Returns a list of TicketSummary objects in data, with a Pagination object in pagination.
The TicketSummary object's fields 17 fields
| Field | Type and description |
|---|---|
id | string The ticket's reference, like |
subject | string The ticket's subject. |
status | string Where it stands: Known values: |
topic | string What it's about: Known values: |
priority | string How urgent it was when opened: Known values: |
about | string or null The site or server it's about, as the panel shows it: |
messageCount | integer How many messages the conversation has. |
preview | string The start of the latest message, as plain text on one line (up to 180 characters). Empty when it was only files. |
lastMessageAt | string An ISO 8601 time, in UTC When the latest message was sent. |
lastReplyBy | string Who wrote the latest message: Known values: |
autoCloseAt | string or null An ISO 8601 time, in UTC While support's answer waits for you ( |
remindersSent | integer Reminders emailed since support's latest answer: 0, 1 or 2. |
rating | object or null Your rating of the help, once given. Null: not rated. |
rating | string How you rated the help: Known values: |
comment | string or null What you wrote with it. Null: nothing. |
ratedAt | string An ISO 8601 time, in UTC When it was rated. |
createdAt | string An ISO 8601 time, in UTC When the ticket was opened. |
Example response
{
"data": [
{
"id": "RF-7KQ2MX",
"subject": "Checkout page shows a 502 error",
"status": "answered",
"topic": "server",
"priority": "high",
"about": "Site: Shop",
"messageCount": 2,
"preview": "Thanks for the screenshot. The shop's PHP workers were all busy with a plugin's slow requests, so the server answered 502. We raised the site's PHP worker limit and the checkout pa",
"lastMessageAt": "2026-11-16T10:12:40.000Z",
"lastReplyBy": "support",
"autoCloseAt": "2026-11-22T10:13:05.000Z",
"remindersSent": 1,
"rating": null,
"createdAt": "2026-11-16T09:58:02.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. |