Ticket Types

List a desk's ticket types to discover routing ids.

List every non-archived ticket type on the token's desk. Use this to find the ticketTypeId you pass to Create A Ticket. The desk default is flagged.

Example

curl
curl https://acme.headoni.app/api/v1/ticket-types \
  -H "Authorization: Bearer hd_your_secret_here"

Response

200
{
  "ticketTypes": [
    { "id": "1490100000000000001", "name": "Question", "isInternal": false, "isDefault": true },
    { "id": "1490100000000000002", "name": "Incident", "isInternal": false, "isDefault": false },
    { "id": "1490100000000000003", "name": "Task", "isInternal": true, "isDefault": false }
  ]
}

Errors

StatuserrorMeaning
401unauthenticatedMissing or invalid token.
403insufficient_scopeToken lacks tickets:read.