Assign conversation
Assign an Inbox conversation to a team member.
POST https://cotlet.dev/api/v1/simpletexting/conversations/{conversation_id}/assign
write
Picks the team member from the dropdown at the top of the conversation. The member must have accepted the invitation under Team. Nothing is sent to the contact, and assigning it to someone else undoes it in one call, so it does not wait for your OK.
Parameters
| Name | Type | Description |
|---|---|---|
| conversation_id string required | string | conversation_id from list_conversations. |
| assignee string required | string | Name of the team member, as the Team page shows it. |
Request
curl -X POST https://cotlet.dev/api/v1/simpletexting/conversations/conversation_8c41d2/assign \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assignee":"assignee"}' result = client.call("simpletexting", "assign_conversation", {"conversation_id":"conversation_8c41d2","assignee":"assignee"}) const result = await cotlet.call('simpletexting', 'assign_conversation', {"conversation_id":"conversation_8c41d2","assignee":"assignee"}); cotlet call simpletexting assign_conversation --data '{"conversation_id":"conversation_8c41d2","assignee":"assignee"}' Example response
{
"conversation_id": "c_8f21a6",
"assigned_to": "Priya Nair"
}