Open a support ticket
/v1/tickets Opens a support ticket with your first message, about the account in general or about one of its sites or servers (siteId or serverId). Support is told at once, and their answer comes by email to the account's address, in the panel, and here. The account's address also gets an email saying the ticket was received.
To send files with it, upload each one first (PUT /tickets/uploads), then name them in fileIds: up to 5 files, together up to 25 MB. Up to 10 new tickets an hour (429 rate_limited). Location is the new ticket's address.
Scopes
The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).
-
support:write - Open and answer tickets. Open support tickets and reply to them.
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 |
Request body
JSON, with these fields. Fields that aren't listed are refused.
| Field | Type and description |
|---|---|
subject Required | string 3 to 150 characters The ticket's subject: 3 to 150 characters. |
topic Required | string What it's about: One of: |
priority Required | string How urgent it is: One of: |
siteId | string or null The site it's about, if any. Leave it out (or null) for a question about the account in general. |
serverId | string or null The server it's about, if any (for a site, send |
message Required | string 10 to 10,000 characters What you need help with, as plain text: 10 to 10,000 characters. |
html | string or null Up to 100,000 characters The message with its formatting, as HTML (optional): paragraphs, line breaks, bold, italics, underline, headings, lists, links (http, https, mailto), quotes, code and tables are kept; anything else (scripts, styles, pictures, colours, classes) is removed. When sent, the message's text is taken from it, and |
fileIds | array of strings Up to 5 items Files to send with the message: the ids of files uploaded with |
Example request
curl -X POST "https://api.rabbitflare.com/v1/tickets" \
-H "Authorization: Bearer $RABBITFLARE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"subject": "Checkout page shows a 502 error",
"topic": "server",
"priority": "high",
"siteId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"message": "Since this morning the checkout page of the shop shows a 502 error. The screenshot shows what customers see.",
"fileIds": [
"5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9"
]
}' const res = await fetch("https://api.rabbitflare.com/v1/tickets", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.RABBITFLARE_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"subject": "Checkout page shows a 502 error",
"topic": "server",
"priority": "high",
"siteId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"message": "Since this morning the checkout page of the shop shows a 502 error. The screenshot shows what customers see.",
"fileIds": [
"5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9"
]
}),
});
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.tickets.create({
subject: "Checkout page shows a 502 error",
topic: "server",
priority: "high",
siteId: "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
message: "Since this morning the checkout page of the shop shows a 502 error. The screenshot shows what customers see.",
fileIds: ["5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9"],
});
console.log(data); <?php
$ch = curl_init('https://api.rabbitflare.com/v1/tickets');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RABBITFLARE_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'subject' => 'Checkout page shows a 502 error',
'topic' => 'server',
'priority' => 'high',
'siteId' => '8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d',
'message' => 'Since this morning the checkout page of the shop shows a 502 error. The screenshot shows what customers see.',
'fileIds' => [
'5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9',
],
]),
]);
$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/tickets",
headers={
"Authorization": "Bearer " + os.environ["RABBITFLARE_TOKEN"],
},
json={
"subject": "Checkout page shows a 502 error",
"topic": "server",
"priority": "high",
"siteId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
"message": "Since this morning the checkout page of the shop shows a 502 error. The screenshot shows what customers see.",
"fileIds": [
"5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
],
},
timeout=120,
)
response.raise_for_status()
print(response.json()["data"]) Response
201 Created Returns the Ticket object in data.
The Ticket object's fields 35 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. | ||||||||||
messages | array of objects The conversation, oldest message first. | ||||||||||
id | string The message's id. | ||||||||||
author | string Who wrote it: Known values: | ||||||||||
authorName | string The writer's name: on your side, the person who wrote it (a message sent through the API carries the account owner's name); on support's, always | ||||||||||
body | string The message as plain text. Empty when it was only files. | ||||||||||
html | string or null The message with its formatting, as HTML cleaned to simple formatting (paragraphs, bold, lists, links, quotes, code, tables). Null for a plain-text message. | ||||||||||
via | string How it was written: Known values: | ||||||||||
createdAt | string An ISO 8601 time, in UTC When it was sent. | ||||||||||
files | array of objects The files sent with it, in the order they were uploaded. Show its 4 fields
| ||||||||||
history | array of objects Reminders, closing and reopening, oldest first. | ||||||||||
id | string The entry's id. | ||||||||||
kind | string What happened: Known values: | ||||||||||
by | string or null Who closed or reopened it: Known values: | ||||||||||
createdAt | string An ISO 8601 time, in UTC When it happened. |
Example response
{
"data": {
"id": "RF-7KQ2MX",
"subject": "Checkout page shows a 502 error",
"status": "open",
"topic": "server",
"priority": "high",
"about": "Site: Shop",
"messageCount": 1,
"preview": "Since this morning the checkout page of the shop shows a 502 error. The screenshot shows what customers see.",
"lastMessageAt": "2026-11-16T09:58:02.000Z",
"lastReplyBy": "customer",
"autoCloseAt": null,
"remindersSent": 0,
"rating": null,
"createdAt": "2026-11-16T09:58:02.000Z",
"messages": [
{
"id": "9d2e4f6a-1b3c-4d5e-8f7a-0b1c2d3e4f5a",
"author": "customer",
"authorName": "Jane Doe",
"body": "Since this morning the checkout page of the shop shows a 502 error. The screenshot shows what customers see.",
"html": null,
"via": "panel",
"createdAt": "2026-11-16T09:58:02.000Z",
"files": [
{
"id": "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
"filename": "checkout-error.png",
"contentType": "image/png",
"sizeBytes": 184320
}
]
}
],
"history": []
}
} 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. |
413 files_ | The files of one message can add up to 25 MB. Send some of them with another message. |
422 validation_ | One or more fields are missing or wrong. Correct the fields named in |
422 message_ | A new ticket's message needs at least 10 characters of text (for a formatted message, the text of its Tell support a little more. |
422 message_ | The message is longer than 10,000 characters (for a formatted message, the text of its Shorten it, or say the rest in another message. |
422 file_ | A file named in Upload it again and send the new id. |
422 too_ | One message can carry up to 5 files. Send the others with another message. |
429 rate_ | Too many requests. Wait for Retry-After seconds, then go on more slowly. |