Note: This endpoint will be replaced. Refer to the new API documentation for registering and updating contact for updated usage and features.
Register a guest user as a new omnichannel contact.
Permission required: view-l-room
The authToken of the authenticated user.
The userId of the authenticated user.
{
"token": "434lxd7iss8yh8c4m80wh",
"name": "Chris",
"email": "chris@gmail.com",
"phone": "+91123456788",
"contactManager": {
"username": "kim.jane"
}
}The contact token. Enter a random unique string as the value. Use this same token to update the contact.
The contact name.
The contact email.
The contact phone number.
The contact manager's user name.
OK To update a contact, use the contact token created in the response.
{
"contact": "7ipCD6NDtkkRDCiNM",
"success": true
}Bad Request
{
"success": false,
"error": "Match error: Missing key 'token'"
}Unauthorized
{
"status": "error",
"message": "You must be logged in to do this."
}Forbidden
{
"success": false,
"error": "User does not have the permissions required for this action [error-unauthorized]"
}{
"success": false,
"error": "unauthorized"
}