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 https://cotlet.dev/api/v1/jivochat/chat-topics \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("jivochat", "list_chat_topics") const result = await cotlet.call('jivochat', 'list_chat_topics'); cotlet call jivochat list_chat_topics Example response
{
"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": []
}
]
}