Assign team member to chat

Assigns a team member to a customer's chat or to a WhatsApp group chat.

Before you call

  • Send customerPhoneNumber (with country code) or groupId; at least one is required. If both are sent, groupId is used.
  • assignedUserPhoneNumber (with country code) is required and must belong to an existing team member.
  • Pass wabaNumber (with country code) to assign the chat on one WhatsApp number only.

How it works

  • If the customer does not exist yet, it is created.
  • Without wabaNumber, the customer's chat on every connected WhatsApp number is assigned.
  • If the chat is already assigned and reassign is not true, nothing changes and the current assignee is returned.
  • Set assignedUserPhoneNumber to random to pick a random online team member who has chat capacity.
  • Fails if the chosen member is at their chat capacity; pick another member.
  • The response contains the assignee's name, email and phone.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
length between 7 and 15

Phone number of customer (required if groupId is not provided)

string

GroupId of the WA group (required if customerPhoneNumber is not provided)

string
required
length between 7 and 15

Phone number of the agent to assign

boolean

Boolean to assign user even if chat is already assigned

string
length between 7 and 15

Integration Waba Number with country code (only applicable when customerPhoneNumber is used)

Responses
201

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json