POST
/
customer
/
{id}
/
assign
Authorization
Path
Body
curl --request POST \
  --url https://chat.zoko.io/v2/customer/{id}/assign \
  --header 'Content-Type: application/json' \
  --header 'apikey: <apikey>' \
  --data '{
  "assigneeId": "<string>",
  "id": "<string>",
  "override": true
}'
{
  "details": "customer assigned",
  "message": "customer assigned",
  "status": "200"
}

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
assigneeId
string

id of the agent / team

id
string

id of the customer

override
boolean

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

Response

200 - application/json
details
string
message
string
status
string