List categories
Ticket categories with ID and name.
GET https://cotlet.dev/api/v1/happyfox/categories
read
Lists the categories in your HappyFox with their IDs and names. Canned actions are defined per category, so use it before picking one.
Parameters
No parameters.
Request
curl https://cotlet.dev/api/v1/happyfox/categories \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("happyfox", "list_categories") const result = await cotlet.call('happyfox', 'list_categories'); cotlet call happyfox list_categories Example response
{
"categories": [
{
"category_id": 1,
"name": "Support"
},
{
"category_id": 2,
"name": "Billing"
}
]
}