Set Visitor's Status

Prev Next
Post
/api/v1/livechat/visitor.status

Update an Omnichannel visitor's status in their conversations. The new status appears on all of the visitor's conversations, including conversations waiting in the queue. The status saved on the visitor's record doesn't change.

Changelog

Version Description
9.1.0 Unknown top-level body fields return 400. Validation error messages changed.
0.74.0 Added
Body parameters
Example
{
  "token": "54fc5544030bcecda0533",
  "status": "busy"
}
object
token
string Required

The visitor token.

Example54fc5544030bcecda0533
status
string Required

The visitor's new status. Use online, away, busy, or offline.

Examplebusy
Responses
200
Success Example
{
  "token": "54fc5544030bcecda0533",
  "status": "busy",
  "success": true
}
object
token
string
status
string
success
boolean
400

Bad Request

Missing Token
{
  "success": false,
  "error": "must have required property 'token' [error-invalid-params]",
  "errorType": "error-invalid-params"
}
Missing Status
{
  "success": false,
  "error": "must have required property 'status' [error-invalid-params]",
  "errorType": "error-invalid-params"
}
Invalid Visitor Token
{
  "success": false,
  "error": "[invalid-token]",
  "errorType": "invalid-token"
}
Invalid Field Type
{
  "success": false,
  "error": "must be string [error-invalid-params]",
  "errorType": "error-invalid-params"
}
Unknown Body Property
{
  "success": false,
  "error": "must NOT have additional properties [error-invalid-params]",
  "errorType": "error-invalid-params"
}
object
success
boolean
error
string
errorType
string