Assign Team Member to Customer

Easily assign a team member to a customer using the DoubleTick API to streamline communication and enhance customer management. πŸš€

API Endpoint

Use the following endpoint to assign a team member to a customer:

POST https://public.doubletick.io/customer/assign

Request Headers

{
  "Authorization": "YOUR_API_KEY",
  "Content-Type": "application/json"
}

Request Body Parameters

{
  "customerPhoneNumber": "customer_number",
  "assignedUserPhoneNumber": "agent_number",
  "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.
  • wabaNumber (string, required): The WhatsApp Business API number in international format.

Response

Success Response (201)

{
  "name": "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
}

Not Found (404)

{
  "message": "error_message",
  "code": "message_token"
}

Unprocessable Entity (422)

{
  "message": "invalid file type for audio: text/html; charset=utf-8",
  "error": "Unprocessable Entity",
  "statusCode": 422
}

Best Practices

  • Ensure phone number and team member details are valid before making the request.
  • Assign team members based on their expertise and customer requirements.
  • Regularly review team assignments to optimize customer management.

What’s Next

Explore more message types and enhance your WhatsApp communication with DoubleTick API