Assign conversation

Assigns a conversation to a user or to a team.

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

write Confirm

Uses the Assign button of the conversation. Pass exactly one of user_id or team_id, both from list_assignees. The assignee sees the conversation in their inbox. A conversation that another person already took is returned with its current assignee and not changed. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: assign_conversation
NameTypeDescription
conversation_id integer required integer Conversation ID from list_conversations or search_conversations.
user_id integer integer User ID from list_assignees. Use this or team_id.
team_id integer integer Team ID from list_assignees. Use this or user_id.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/trengo/conversations/5120344/assign \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id":4012}'
Python
result = client.call("trengo", "assign_conversation", {"conversation_id":5120344,"user_id":4012})
Node.js
const result = await cotlet.call('trengo', 'assign_conversation', {"conversation_id":5120344,"user_id":4012});
CLI
cotlet call trengo assign_conversation --data '{"conversation_id":5120344,"user_id":4012}'

Example response

JSON

{
  "conversation_id": 5120344,
  "assigned_to": {
    "type": "user",
    "id": 4012,
    "name": "Sam de Boer"
  },
  "assigned_at": "2026-10-20T07:06: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.