List ticket statuses

GET/v2/helpdesk/statuses

Return the statuses a Helpdesk ticket can have, with the key to send in the API and the name shown in the dashboard.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

Returns the ticket statuses of the Helpdesk. Call it to fill a status picker in your own tool, or to check which values status accepts in Update a ticket and List tickets.

Request

GET /v2/helpdesk/statuses

The call has no path parameters, no query parameters and no body. The list is short, so it is returned in one piece. The response still uses the usual list shape, with a nextCursor that is always null.

Example request

curl https://api.askocto.co/v2/helpdesk/statuses \
  -H "Authorization: Bearer $OCTO_API_KEY"
const response = await fetch("https://api.askocto.co/v2/helpdesk/statuses", {
  headers: { Authorization: `Bearer ${process.env.OCTO_API_KEY}` },
})

const { data } = await response.json()
for (const status of data) console.log(status.key, "=", status.name)

Example response

A successful call returns 200 OK.

{
  "data": [
    { "key": "open", "name": "Open", "description": "The ticket needs work from your team." },
    { "key": "pending", "name": "Pending", "description": "Waiting for a reply from the customer." },
    { "key": "on_hold", "name": "On hold", "description": "Waiting on something outside the conversation." },
    { "key": "solved", "name": "Solved", "description": "The request has been handled." },
    { "key": "closed", "name": "Closed", "description": "Finished and kept for the record." }
  ],
  "nextCursor": null
}

Response fields

Name Type Description
data[].key string The value you send as status in the API: open, pending, on_hold, solved or closed.
data[].name string The label shown in the Helpdesk.
data[].description string A short explanation of when to use the status.
nextCursor string or null Always null.

The keys use lowercase letters and underscores, so the On hold status is on_hold in requests and responses. The dashboard view of the same statuses is explained in Ticket statuses.

Errors

Status Code When
401 unauthorized The API key is missing, malformed or deleted.
429 rate_limited Too many requests. Wait for the number of seconds in the Retry-After header.

Priorities are fixed too: low, normal, high and urgent. See the Helpdesk overview.

Something unclear or missing? Tell us and we will fix the page.