Create Voice Channel Visitor
HTTP Method URL Requires Auth POST/api/v1/livechat/visitorno
Key Example Value Description visitor*{ "visitor": { ... }Enter the body parameters in the visitor object. token*erdsfdjs43828492Enter a random unique string as the visitor token. nameJohn DoeVisitor's name. emailjohn.doe@email.comVisitor's email ID. departmentSupportThe department that the visitor wants to register to. phone+37265783468Visitor's phone number. usernamekim.janeThe agent's user name. custom fields: key, value, overwite"customFields": [{ "key": "address", "value": "Rocket.Chat street",
"overwrite": true }]
Enter the custom field key, value, and whether you want to overwrite this information.
curl -- location -- request POST ' localhost:3000/api/v1/livechat/visitor' \
-- header ' Content-Type: application/json' \
-- data- raw ' {
"visitor": {
"token": "867ad6a09fc4af29f6f1f2a9cf1deaba"
}
}'
{
"visitor" : {
"_id" : " b3c7SMriL729R3J8w" ,
"username" : " guest-2" ,
"status" : " online" ,
"ts" : " 2022-06-29T06:05:01.392Z" ,
"_updatedAt" : " 2022-06-29T06:05:01.408Z" ,
"token" : " 867ad6a09fc4af29f6f1f2a9cf1deaba"
},
"success" : true
}