List topics
Topics your organization uses to tag Conversations, with their parent Topics.
GET https://cotlet.dev/api/v1/gladly/topics
read
Returns every enabled Topic with its ID and parent. Nested Topics show as parent > child, for example Exchange > Size. The agent only uses Topics from this list. Topics are created by administrators in Gladly, not by this tool.
Parameters
No parameters.
Request
curl https://cotlet.dev/api/v1/gladly/topics \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("gladly", "list_topics") const result = await cotlet.call('gladly', 'list_topics'); cotlet call gladly list_topics Example response
{
"topics": [
{
"topic_id": "Z_Oto7j-Sy2DlQdnZBDdDw",
"name": "Order Status",
"parent": null
},
{
"topic_id": "8eiDakrnTgKa3HIxtgV5OA",
"name": "Damaged Merchandise",
"parent": "Order Return"
}
]
}