Post
/api/v1/omnichannel/contacts.unblock
Use this endpoint to unblock an Omnichannel on a specific channel. Permission required: unblock-livechat-contact
Header parameters
X-Auth-Token
stringRequired
The authToken of the authenticated user.
ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired
The userId of the authenticated user.
ExamplerbAXPnMktTFbNpwtJ
Body parameters
Example 1
{
"visitor": {
"visitorId": "68f0d2c201e202fefed83672",
"source": {
"type": "widget"
}
}
}object
visitor
object Required
The visitor object contains the details of the contact that you want to unblock.
visitorId
string Required
Enter the visitor ID of the contact that you want to unblock.
Example68f0d2c201e202fefed83672
source
object Required
The source object contains the channels from which you want to unblock the contact.
type
string Required
Enter the type of channel from which you want to unblock the contact.
Examplewidget
Responses
200
OK
Success
{
"success": true
}object
success
boolean
400
Bad Request
Example 1
{
"success": false,
"error": "must have required property 'visitor' [invalid-params]",
"errorType": "invalid-params"
}Example 2
{
"success": false,
"error": "error-contact-not-found"
}object
success
boolean
error
string
errorType
string
401
Unauthorized
Authorization Error
{
"status": "error",
"message": "You must be logged in to do this."
}object
status
string
message
string