Get a ticket

GET/v2/helpdesk/tickets/{ticketId}

Fetch one Helpdesk ticket by its ID to read its subject, status, priority, assignee, team, contact, tags and channel.

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

Returns a single ticket. Call it to refresh a ticket you show in your own tool, to check its status before you reply, or to open a hit from Search tickets.

Request

GET /v2/helpdesk/tickets/{ticketId}

Path parameters:

Name Type Required Description
ticketId string Yes The ID of the ticket, starting with tkt_.

The call has no query parameters and no body. The ticket is returned in every status, including solved and closed. The messages of the ticket are not included, because a long thread would make this call slow. Read them with List ticket messages.

Example request

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

if (!response.ok) {
  const { error } = await response.json()
  throw new Error(`${error.code}: ${error.message}`)
}

const ticket = await response.json()
console.log(ticket.subject, ticket.status, ticket.priority)

Example response

A successful call returns 200 OK.

{
  "id": "tkt_4m8x2q",
  "subject": "Damaged jacket in order A-1042",
  "status": "pending",
  "priority": "high",
  "assigneeId": "usr_6k9d2r",
  "teamId": "team_2c7h5v",
  "contactId": "con_9a3f1k",
  "tags": ["refund", "damaged"],
  "channel": "widget",
  "createdAt": "2026-03-20T14:05:00Z",
  "updatedAt": "2026-03-20T15:30:00Z"
}

Response fields

The response is a ticket object. The Helpdesk overview describes every field and the allowed values of status and priority.

contactId points to the customer. The ticket does not repeat the name or email of the contact, so read the contact if you need them. The meaning of each status is explained in Ticket statuses.

Errors

Status Code When
401 unauthorized The API key is missing, malformed or deleted.
404 not_found No ticket has this ID in your workspace.
429 rate_limited Too many requests. Wait for the number of seconds in the Retry-After header.

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