Skip to content

Reply to a support ticket

POST /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

FieldType and description
Idempotency-Key

string 1 to 255 characters

A key of your own for this request, like a UUID: letters, digits and _ - : . Send the request again with the same key (after a timeout, say) and it's done only once. Keys are kept for 24 hours (see Idempotency).

Path parameters

FieldType and description
ticketRef Required

string

The ticket's id: its reference, like RF-7KQ2MX (any case).

Request body

JSON, with these fields. Fields that aren't listed are refused.

FieldType 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 message is its plain text. Up to 100,000 characters.

fileIds

array of strings Up to 5 items

Files to send with the message: the ids of files uploaded with PUT /tickets/uploads that haven't been sent yet. Up to 5, together up to 25 MB.

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!"
}'

Response

201 Created Returns the Ticket object in data.

The Ticket object's fields 35 fields
FieldType and description
id

string

The ticket's reference, like RF-7KQ2MX: its id here (ticketRef in paths), in the panel and in the emails about it.

subject

string

The ticket's subject.

status

string

Where it stands: open (waiting for support: new, or you wrote last), answered (support replied and waits for you) or closed (closed by you, by support, or by itself after reminders went unanswered).

Known values: openansweredclosed More can appear.

topic

string

What it's about: server (a server or site problem), billing, domains (domains and SSL), cdn, migration (moving a site to Rabbitflare), account (the account and signing in), sales (plans and features) or other.

Known values: serverbillingdomainscdnmigrationaccountsalesother More can appear.

priority

string

How urgent it was when opened: normal (a general question), high (something isn't working) or urgent (a site is down).

Known values: normalhighurgent More can appear.

about

string or null

The site or server it's about, as the panel shows it: Site: <name> or Server: <name>, with the name it had when the ticket was opened. Null: the account in general.

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: customer (your side) or support.

Known values: customersupport More can appear.

autoCloseAt

string or null An ISO 8601 time, in UTC

While support's answer waits for you (answered): when the ticket closes by itself if nobody writes, after a reminder and a final reminder by email. Null otherwise.

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: great, okay or not_good.

Known values: greatokaynot_good More can appear.

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: customer (your side) or support (Rabbitflare's support team).

Known values: customersupport More can appear.

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 Rabbitflare Support.

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: panel (in the panel, or through the API) or email (a reply by email).

Known values: panelemail More can appear.

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
FieldType and description
id

string

The file's id: what fileIds takes, and what GET /tickets/{ticketRef}/files/{fileId} downloads once it's sent.

filename

string

The file's name, as it's downloaded.

contentType

string

The file's type, found from its bytes: a PNG, JPEG, GIF or WebP picture, a PDF, or plain text.

Known values: image/pngimage/jpegimage/gifimage/webpapplication/pdftext/plain More can appear.

sizeBytes

integer

The file's size, in bytes.

history

array of objects

Reminders, closing and reopening, oldest first.

id

string

The entry's id.

kind

string

What happened: reminder and final_reminder (support's answer waited for you, and a reminder was emailed), auto_closed (it closed by itself after the final reminder), closed or reopened.

Known values: reminderfinal_reminderauto_closedclosedreopened More can appear.

by

string or null

Who closed or reopened it: customer (your side) or support. Null for the reminders and the automatic closing.

Known values: customersupport More can appear.

createdAt

string An ISO 8601 time, in UTC

When it happened.

Example response

201 Created
{
  "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 codeWhen, and what to do
404 not_found

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_too_large

The files of one message can add up to 25 MB.

Send some of them with another message.

422 validation_failed

One or more fields are missing or wrong. fields names each one with what's wrong.

Correct the fields named in fields. Unknown fields are refused too.

422 message_too_long

The message is longer than 10,000 characters (for a formatted message, the text of its html).

Shorten it, or say the rest in another message.

422 file_missing

A file named in fileIds isn't waiting to be sent any more: it was sent with another message, removed, or uploaded more than a day ago.

Upload it again and send the new id.

422 too_many_files

One message can carry up to 5 files.

Send the others with another message.

429 rate_limited

Too many requests. scope says which limit: token, account, create, operation or network.

Wait for Retry-After seconds, then go on more slowly.

Rate limit

Write requests: 30 a minute per token, 60 per account. More in Rate limits.

Added on .

Popular

API docs