Assign Team Member to Chat
Easily assign team members to customer chats using the DoubleTick API, ensuring efficient support and seamless communication. π₯β
API Endpoint
Use the following endpoint to assign a team member to a chat:
POST https://public.doubletick.io/team-member/assign
Request Headers
{
"Authorization": "YOUR_API_KEY",
"Content-Type": "application/json"
}
Request Body Parameters
{
"customerPhoneNumber": "customer_number",
"assignedUserPhoneNumber": "agent_number",
"reassign": true,
"wabaNumber": "your_waba_number"
}
Parameters
customerPhoneNumber
(string, required): The customerβs phone number in international format.assignedUserPhoneNumber
(string, required): The phone number of the team member to be assigned in international format.reassign
(boolean, required): Whether to reassign the chat if it is already assigned.wabaNumber
(string, required): The registered WhatsApp Business API number in international format.
Response
Success Response (201)
{
"name": "assigned_agent_name",
"email": "agent_email_address",
"phone": "agent_number"
}
Bad Request (400)
{
"message": "error_message",
"error": "Bad Request",
"statusCode": 400
}
Unauthorized (401)
{
"message": "Invalid public api key",
"error": "Unauthorized",
"statusCode": 401
}
Unprocessable Entity (422)
{
"message": "invalid file type for audio: text/html; charset=utf-8",
"error": "Unprocessable Entity",
"statusCode": 422
}
Best Practices
- Ensure the team member is available before assigning.
- Use reassignment wisely to avoid disrupting ongoing conversations.
Updated 14 days ago
Whatβs Next
Explore more message types and enhance your WhatsApp communication with DoubleTick API