Reply to a support ticket
/v1/tickets/{ticketRef}/messages Adds your message to the ticket's conversation. Support is told at once, and their answer comes by email to the account's address, in the panel, and here. The ticket goes back to support's queue (status becomes open), and a closed ticket is reopened.
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 60 replies an hour (429 rate_limited). Answers the ticket as it is now, your message last; Location is the 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 |
Path parameters
| Field | Type and description |
|---|---|
ticketRef Required | string The ticket's id: its reference, like |
Request body
JSON, with these fields. Fields that aren't listed are refused.
| Field | Type and description |
|---|---|
message | string Up to 10,000 characters Your reply, as plain text: up to 10,000 characters. It can be left out when files are sent. |
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/RF-7KQ2MX/messages" \
-H "Authorization: Bearer $RABBITFLARE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"message": "Orders go through again. Thank you!"
}' const res = await fetch("https://api.rabbitflare.com/v1/tickets/RF-7KQ2MX/messages", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.RABBITFLARE_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"message": "Orders go through again. Thank you!"
}),
});
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.reply({
ticketRef: "RF-7KQ2MX",
message: "Orders go through again. Thank you!",
});
console.log(data); <?php
$ch = curl_init('https://api.rabbitflare.com/v1/tickets/RF-7KQ2MX/messages');
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([
'message' => 'Orders go through again. Thank you!',
]),
]);
$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/RF-7KQ2MX/messages",
headers={
"Authorization": "Bearer " + os.environ["RABBITFLARE_TOKEN"],
},
json={
"message": "Orders go through again. Thank you!",
},
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": 3,
"preview": "Orders go through again. Thank you!",
"lastMessageAt": "2026-11-19T08:28:30.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
}
]
},
{
"id": "2a3b4c5d-6e7f-4a8b-9c0d-1e2f3a4b5c6d",
"author": "support",
"authorName": "Rabbitflare Support",
"body": "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 page loads again. Could you try an order?",
"html": "<p>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 page loads again. Could you try an order?</p>",
"via": "email",
"createdAt": "2026-11-16T10:12:40.000Z",
"files": []
},
{
"id": "6f7a8b9c-0d1e-4f2a-b3c4-d5e6f7a8b9c0",
"author": "customer",
"authorName": "Jane Doe",
"body": "Orders go through again. Thank you!",
"html": null,
"via": "panel",
"createdAt": "2026-11-19T08:28:30.000Z",
"files": []
}
],
"history": [
{
"id": "7b8c9d0e-1f2a-4b3c-8d4e-5f6a7b8c9d0e",
"kind": "reminder",
"by": null,
"createdAt": "2026-11-18T10:13:05.000Z"
}
]
}
} 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_ | 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. |