POST
/
customer
/
{id}
/
assign
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"
}

Authorizations

apikey
string
headerrequired

Authentication is done via apikey provided for your account

Include the following in your request header

apikey: "your_apikey_here"

Path Parameters

id
string
required

ID of customer

Body

application/json
id
string

id of the customer

assigneeId
string

id of the agent / team

override
boolean

Force assignment. Default is false and will skip assignment if the customer is already assigned

Response

200 - application/json
status
string
message
string
details
string