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.
Required token scopes: Manage all chats
Identify the chat with exactly one of phone or chatId, and the assignee with exactly one agent identifier (agentUid / agentEmail / agentCrmId), a departmentId, or a department plus one agent identifier.
הרשאות
API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.
גוף
The contact's phone number (any common format - normalized automatically). Provide either phone or chatId
The unique identifier of the chat to assign. Provide either chatId or phone
The internal user ID of the agent in Texter. Only one agent identifier can be used
The agent's email address in Texter. Only one agent identifier can be used
The agent's CRM identifier in Texter. Only one agent identifier can be used
The department ID to assign the chat to. Can be used alone or together with a single agent identifier
Required only when multiple chats exist for the same phone number, to disambiguate
תגובה
Chat assigned. Body is the plain text OK