Get one support ticket
GET
/tickets/{ticket_id}
const url = 'https://api.fleet.co/platform/v1/tickets/42';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.fleet.co/platform/v1/tickets/42 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ticket_id
required
Ticket id
string
Example
42Responses
Section titled “Responses”Ticket
Media typeapplication/json
object
data
required
object
id
required
integer
reference
required
Reference Fleet support quotes in its replies
string
subject
required
string
category
required
What the request is about, as in Cockpit’s support form
string
status
required
Support ticket status; WAITING_CLIENT means Fleet waits for the company’s answer
string
content
required
The request as the requester wrote it
string
requester_id
required
integer
order_id
required
integer
device_ids
required
Array<integer>
opened_at
required
ISO 8601
string
closed_at
required
ISO 8601
string
messages
required
Replies after the opening request, oldest first
Array<object>
object
id
required
integer
content
required
HTML when content_type is html_body
string
content_type
required
string
author_id
required
User of the company who wrote it, when known
integer
from_fleet
required
True when Fleet support wrote it
boolean
created_at
required
ISO 8601
string
Example
{ "data": { "reference": "48213", "category": "ORDER__UPDATE", "status": "OPENED", "messages": [ { "content_type": "body" } ] }}Validation error
Media typeapplication/json
object
message
required
Every validation failure, comma-separated
string
type
required
string
error
required
string
Example
{ "message": "Required, must be an ISO 3166-1 alpha-2 country code", "type": "validation_error", "error": "validation_error"}Missing, invalid, or revoked API key
Media typetext/plain
string
Example
UnauthorizedTicket not found
Media typeapplication/json
object
error
required
string
Example
{ "error": "TICKET_NOT_FOUND"}Rate limit exceeded. The RateLimit-* headers give the limit and the reset time.
Media typetext/plain
string
Example
Too many requests, please try again later.Unexpected server error
Media typeapplication/json
object
error
required
string
Example
{ "error": "INTERNAL_ERROR"}Rate limiting is temporarily unavailable; retry with backoff
Media typeapplication/json
object
message
required
string
Example generated
{ "message": "example"}
