cURL
curl --request POST \ --url https://chat.zoko.io/v2/customer/{id}/assign \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data ' { "id": "<string>", "assigneeId": "<string>", "override": true } '
{ "status": "200", "message": "customer assigned", "details": "customer assigned" }
Assign customer to an agent or team
Authentication is done via apikey provided for your account
apikey
Include the following in your request header
apikey: "your_apikey_here"
ID of customer
customer assignment info
id of the customer
id of the agent / team
Force assignment. Default is false and will skip assignment if the customer is already assigned
Customer Assignment Response
"200"
"customer assigned"