Open a support ticket with Fleet
const url = 'https://api.fleet.co/platform/v1/tickets';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"requester_id":1,"subject":"example","content":"example","category":"ORDER__UPDATE","order_id":1,"device_id":1}'};
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 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "requester_id": 1, "subject": "example", "content": "example", "category": "ORDER__UPDATE", "order_id": 1, "device_id": 1 }'Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
User of the company Fleet support answers; an employee or an admin
The request, in the requester’s words
What the request is about, as in Cockpit’s support form
Example
HARDWARE_PROBLEMOrder of the company the request is about
Device the request is about
Responses
Section titled “Responses”Created ticket
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
Missing, invalid, or revoked API key
Example
UnauthorizedThe API key has READ scope; this operation needs WRITE
object
Example
{ "error": "INSUFFICIENT_SCOPE"}Company, order, or device not found
object
Example
{ "error": "COMPANY_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 ticket; nothing was created
object
Example
{ "error": "TICKET_CREATION_FAILED"}Rate limiting is temporarily unavailable; retry with backoff
object
Example generated
{ "message": "example"}
