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

Parameters: close_conversation
NameTypeDescription
conversation_id string required string Conversation ID from list_my_customers, list_conversations or get_customer.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/gladly/conversations/ZbT9m2QxR7iKd4WnHq0LpA/close \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("gladly", "close_conversation", {"conversation_id":"ZbT9m2QxR7iKd4WnHq0LpA"})
Node.js
const result = await cotlet.call('gladly', 'close_conversation', {"conversation_id":"ZbT9m2QxR7iKd4WnHq0LpA"});
CLI
cotlet call gladly close_conversation --data '{"conversation_id":"ZbT9m2QxR7iKd4WnHq0LpA"}'

Example response

JSON

{
  "conversation_id": "ZbT9m2QxR7iKd4WnHq0LpA",
  "status": "closed"
}

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.