Close conversation

Closes a conversation without sending a message.

POST https://cotlet.dev/api/v1/trengo/conversations/{conversation_id}/close

write Confirm

Uses the checkmark above the ticket. It sends nothing to the customer itself, but Journeys, rules or a CSAT survey you set up may react to a closed conversation. To send a last message and close, use reply_to_conversation with close_after_send. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: close_conversation
NameTypeDescription
conversation_id integer required integer Conversation ID from list_conversations or search_conversations.

Request

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

Example response

JSON

{
  "conversation_id": 5120302,
  "status": "closed",
  "closed_at": "2026-10-20T09:10:00Z"
}

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.