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 https://acme.headoni.app/api/v1/ticket-types \
-H "Authorization: Bearer hd_your_secret_here"Response
{
"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
| Status | error | Meaning |
|---|---|---|
| 401 | unauthenticated | Missing or invalid token. |
| 403 | insufficient_scope | Token lacks tickets:read. |