Reply to a ticket
/tickets/{ticketId}/repliesUse this to add a message to an open ticket. Limited to 120 a hour per account.
- Token
- Bearer API token: cxk_live_ followed by 46 letters and digits
- Scope
tickets:write- Header
Authorization: Bearer $CLOUDUXE_API_KEY
How tokens and scopes work: Authentication and scopes.
ticketIdstring (uuid)RequiredThe ticket's id.
Clouduxe-VersionstringOptionalThe API version to use, such as 2026-12-01. Omit it to use your token's version.
pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}$Idempotency-KeystringRequiredA unique key for this logical request, 1 to 128 characters of letters, digits, underscore, dot, colon or hyphen; a UUID is best. Retrying with the same key is safe: the change happens once and the retry gets the same answer. Keys are kept 48 hours.
pattern ^[A-Za-z0-9_.:-]{1,128}$
Body
RequiredbodystringRequiredThe message, 1 to 20,000 characters.
min length 1, max length 20000attachmentIdsarray of string (uuid)OptionalUploaded attachments, at most 10.
max items 10
201Created The ticket.
objectstringRequiredThe object's type. Always "ticket".
idstring (uuid)RequiredThe ticket's id.
referencestringRequiredThe ticket's reference, such as CX-1482.
subjectstringRequiredThe subject.
statusstringRequiredopen, in_progress, awaiting_customer (staff replied and wait for you), customer_replied or closed.
One ofopenin_progressawaiting_customercustomer_repliedclosedprioritystringRequiredlow, normal, high or urgent.
One oflownormalhighurgentdepartmentobjectRequiredThe ticket's department.
Show 3 child attributesHide 3 child attributes
objectstringRequiredThe object's type. Always "department".
idstring (uuid)RequiredThe department's id.
namestringRequiredIts name.
unreadintegerRequiredStaff messages you have not read in the panel.
messagesarray of TicketMessageRequiredThe messages, oldest first. Empty in listTickets; filled by getTicket and createTicket.
Show 6 child attributesHide 6 child attributes
idstring (uuid)RequiredThe message's id.
authorobjectRequiredWho wrote it.
Show 2 child attributesHide 2 child attributes
typestringRequiredcustomer or staff.
One ofcustomerstaffnamestring or nullRequiredThe author's name, or null.
bodystringRequiredThe message text.
attachmentsarray of TicketAttachmentRequiredFiles on the message.
Show 5 child attributesHide 5 child attributes
idstring (uuid)RequiredThe attachment's id. Get a download link with getAttachment.
filenamestringRequiredThe file name.
sizeintegerRequiredBytes.
typestringRequiredThe media type, sniffed from the file.
removedAtstring (date-time) or nullRequiredWhen staff removed it, or null.
createdAtstring (date-time)RequiredWhen it was written.
redactedAtstring (date-time) or nullRequiredWhen staff redacted it, or null.
createdAtstring (date-time)RequiredWhen it was opened.
updatedAtstring (date-time)RequiredWhen it last changed.
lastActivityAtstring (date-time)RequiredThe last message's time.
closedAtstring (date-time) or nullRequiredWhen it was closed, or null.
livemodebooleanRequiredTrue for objects of your live account.
Every response
- 201CreatedThe ticket.
- 400Bad requestThe request is not valid. Codes: version_invalid, idempotency_key_required, idempotency_key_invalid, invalid_json, parameter_missing, parameter_invalid, parameter_unknown.
- 401UnauthorizedAuthentication failed. Codes: token_missing, token_invalid, token_expired, token_revoked.
- 403ForbiddenThe token is not allowed to do this. Codes: forbidden, ip_not_allowed, api_access_disabled, scope_missing.
- 404Not foundNot found. Codes: not_found.
- 409ConflictThe request conflicts with the object's current state. Codes: ticket_closed, idempotency_in_progress.
- 413Too largeThe request body is too large. Codes: request_too_large.
- 415Unsupported media typeUnsupported media type. Codes: unsupported_media_type.
- 422UnprocessableThe request is well formed but cannot be carried out. Codes: attachment_unavailable, idempotency_mismatch.
- 429Too many requestsA rate limit was reached. Codes: rate_limited.
- 500Server errorUnexpected error. Codes: internal_error.
- 503UnavailableTemporarily unavailable. Codes: maintenance, unavailable, outcome_unknown, limits_unavailable.