Reply to a support ticket
const url = 'https://api.fleet.co/platform/v1/tickets/42/messages';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"author_id":1,"content":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.fleet.co/platform/v1/tickets/42/messages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "author_id": 1, "content": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Ticket id
Example
42Request Body
Section titled “Request Body”object
User of the company who writes it; an employee or an admin
Example generated
{ "author_id": 1, "content": "example"}Responses
Section titled “Responses”Ticket with the reply
object
object
Reference Fleet support quotes in its replies
What the request is about, as in Cockpit’s support form
Support ticket status; WAITING_CLIENT means Fleet waits for the company’s answer
The request as the requester wrote it
ISO 8601
ISO 8601
Replies after the opening request, oldest first
object
HTML when content_type is html_body
User of the company who wrote it, when known
True when Fleet support wrote it
ISO 8601
Example
{ "data": { "reference": "48213", "category": "ORDER__UPDATE", "status": "OPENED", "messages": [ { "content_type": "body" } ] }}Validation error, or the author is not a user of the company
Missing, invalid, or revoked API key
Example
UnauthorizedThe API key has READ scope; this operation needs WRITE
object
Example
{ "error": "INSUFFICIENT_SCOPE"}Ticket not found
object
Example
{ "error": "TICKET_NOT_FOUND"}Rate limit exceeded. The RateLimit-* headers give the limit and the reset time.
Example
Too many requests, please try again later.Unexpected server error
object
Example
{ "error": "INTERNAL_ERROR"}Fleet support could not receive the reply, or has not received the ticket yet; nothing was added
object
Example
{ "error": "TICKET_SYNC_FAILED"}Rate limiting is temporarily unavailable; retry with backoff
object
Example generated
{ "message": "example"}
