Draft a cited reply to the client's latest message
curl --request POST \ --url https://example.com/api/v1/tickets/example/draft-reply \ --header 'Authorization: Bearer <token>'Writes a proposed reply to the client’s latest public message on the ticket, in the voice of the calling member, from what the person who opened the ticket can reach in the portal (never the caller’s own reach), citing the tasks and requests it rests on. Nothing is posted or sent: review it, then post it with postTicketMessage. It runs the same review as a client answer, counts against the company’s AI spend limits and the caller’s own hourly allowance of drafts, and needs the client assistant to have a model. Answers 422 with a plain reason when no draft can be written, such as a ticket not opened by an active company contact, and 429 when the hourly allowance is spent. 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).
Responses
Section titled “Responses”The draft and the records it rests on.
object
object
The records the draft rests on, for the sender to check.
object
Where the team opens the record, or null when it cannot be placed.
The task number or ticket code it names.
The proposed reply as plain text, written in the voice of the person who sends it. Nothing is sent.
Example
{ "data": { "citations": [ { "kind": "task" } ] }}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" }}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