Close conversation
Close a Conversation without sending anything to the customer.
POST https://cotlet.dev/api/v1/gladly/conversations/{conversation_id}/close
write Confirm
Does what Close does in Gladly. It does not message the customer, and Gladly will not close a Conversation during an active phone call. Returns the new status. A closed Conversation can be reopened, but your team sees the change. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| conversation_id string required | string | Conversation ID from list_my_customers, list_conversations or get_customer. |
Request
curl -X POST https://cotlet.dev/api/v1/gladly/conversations/ZbT9m2QxR7iKd4WnHq0LpA/close \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("gladly", "close_conversation", {"conversation_id":"ZbT9m2QxR7iKd4WnHq0LpA"}) const result = await cotlet.call('gladly', 'close_conversation', {"conversation_id":"ZbT9m2QxR7iKd4WnHq0LpA"}); cotlet call gladly close_conversation --data '{"conversation_id":"ZbT9m2QxR7iKd4WnHq0LpA"}' Example response
{
"conversation_id": "ZbT9m2QxR7iKd4WnHq0LpA",
"status": "closed"
}