Reply to a ticket or add an internal note
curl --request POST \ --url https://example.com/api/v1/tickets/example/messages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "body": "example", "idempotencyKey": "example", "isInternal": true }'Posts a message on the ticket as the calling member, as the ticket page does: a reply the client sees and is emailed (or texted, on a ticket that texts) through the usual channel, or, with isInternal, a note only the team sees. The body is Markdown. isInternal is required, so a caller always says whether the client sees the message. idempotencyKey, scoped to the caller and the ticket, makes the call safe to retry: a repeat with the same key and message returns the first message with replayed true and posts nothing, and the same key with a different body or isInternal answers 409. Requires the tickets.manage permission; a ticket outside your reach answers 404.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
The message in Markdown, as it should read on the ticket.
A key you choose for this message, such as a UUID, scoped to you and the ticket. Repeating the call with the same key and message returns the first message instead of posting it again; the same key with a different body or isInternal answers 409.
Required. True for an internal note the team alone sees; false for a reply the client sees and is emailed or texted like a reply from the ticket page.
Example generated
{ "body": "example", "idempotencyKey": "example", "isInternal": true}Responses
Section titled “Responses”The key was already used: the first message, nothing new posted.
object
object
The stored message, as HTML.
True when the idempotency key was already used and this is the first message, not a new one.
Example generated
{ "data": { "author": "example", "body": "example", "createdAt": "2026-04-15T12:00:00Z", "id": "example", "isInternal": true, "replayed": true, "ticketId": "example" }}The message was posted.
object
object
The stored message, as HTML.
True when the idempotency key was already used and this is the first message, not a new one.
Example generated
{ "data": { "author": "example", "body": "example", "createdAt": "2026-04-15T12:00:00Z", "id": "example", "isInternal": true, "replayed": true, "ticketId": "example" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Conflict.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC