Register New Agent or Manager
HTTP Method | URL | Requires Auth |
---|---|---|
POST | /api/v1/livechat/users/:type |
Key | Example Value | Description |
---|---|---|
type * | agent | The type of user that you want to register. The value can either be agent or manager . |
Key | Example Value | Description |
---|---|---|
username * | john.doe | The user name that you want to register. |
curl --location 'http://localhost:3000/api/v1/livechat/users/agent' \
--header 'X-Auth-Token: Y97tM4GkYjgaH_fIO5dwBitQQvm3yp-AptYzGQZMX6e' \
--header 'X-User-Id: CkCPNcvsvCDfmWLqC' \
--header 'Content-Type: application/json' \
--data '{
"username": "john.doe"
}'
{
"user": {
"_id": "SQafHvoFPuB57NmBD",
"username": "john.doe"
},
"success": true
}
Version | Description |
---|---|
0.42.0 | Added |
Last modified 26d ago