List statuses

Ticket statuses with ID, name and behaviour, pending or completed.

GET https://cotlet.dev/api/v1/happyfox/statuses

read

Lists the statuses your admin set up under Manage >> Statuses. Behaviour says whether a status leaves the ticket unresolved (pending) or resolved (completed). Use status_id with update_ticket.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/happyfox/statuses \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("happyfox", "list_statuses")
Node.js
const result = await cotlet.call('happyfox', 'list_statuses');
CLI
cotlet call happyfox list_statuses

Example response

JSON

{
  "statuses": [
    {
      "status_id": 1,
      "name": "New",
      "behavior": "pending",
      "default": true
    },
    {
      "status_id": 2,
      "name": "Awaiting customer",
      "behavior": "pending",
      "default": false
    },
    {
      "status_id": 3,
      "name": "Closed",
      "behavior": "completed",
      "default": false
    }
  ]
}

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.