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
curl https://cotlet.dev/api/v1/happyfox/categories \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("happyfox", "list_categories")
Node.js
const result = await cotlet.call('happyfox', 'list_categories');
CLI
cotlet call happyfox list_categories

Example response

JSON

{
  "categories": [
    {
      "category_id": 1,
      "name": "Support"
    },
    {
      "category_id": 2,
      "name": "Billing"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.