List chat topics

List the chat topics your administrator set up, with their sub-topics.

GET https://cotlet.dev/api/v1/jivochat/chat-topics

read

list_chat_topics returns the topics from the Chat Topics button in the Contact Center, nested as the administrator built them. It returns an empty list when the account has no topics. Use the IDs with set_chat_topic.

Parameters

No parameters.

Request

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

Example response

JSON

{
  "topics": [
    {
      "topic_id": "tp_01",
      "name": "Orders",
      "children": [
        {
          "topic_id": "tp_02",
          "name": "Delivery"
        },
        {
          "topic_id": "tp_03",
          "name": "Returns"
        }
      ]
    },
    {
      "topic_id": "tp_04",
      "name": "Pricing",
      "children": []
    }
  ]
}

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.