curl --request POST \
--url https://{projectID}.texterchat.com/server/api/v2/chats/assign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'OK{
"error": "User with CRM ID Texter Agent not found"
}{
"error": "Chat not found for phone: 0529998877"
}Chats
Assign Chat
Assign a specific chat to a designated agent and/or department. When a chat is assigned, its status is automatically set to PENDING for that agent and/or department.
POST
https://{projectID}.texterchat.com/server/api/v2
/
chats
/
assign
curl --request POST \
--url https://{projectID}.texterchat.com/server/api/v2/chats/assign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'OK{
"error": "User with CRM ID Texter Agent not found"
}{
"error": "Chat not found for phone: 0529998877"
}Required token scopes:
Manage all chats
Identify the chat with phone or chatId (if both are sent, phone is used and chatId is ignored; omitting both is an error), and the assignee with exactly one agent identifier (agentUid / agentEmail / agentCrmId), a departmentId, or a department plus one agent identifier. A malformed chatId returns 400 Invalid chatId. Unrecognized body fields are rejected with 400.הרשאות
גוף
application/json
תגובה
Chat assigned. Body is the plain text OK