Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
41 lines (29 loc) · 1.76 KB

File metadata and controls

41 lines (29 loc) · 1.76 KB

Register New Agent or Manager

Register a new agent or manager.

HTTP MethodURLRequires Auth
POST/api/v1/livechat/users/:typeyes

Path Variables

KeyExample ValueDescription
type *agentThe type of user that you want to register. The value can either be agent or manager.

Body

KeyExample ValueDescription
username*john.doeThe user name that you want to register.

Example Call

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"
}'

Example Response

{
  "user": {
    "_id": "SQafHvoFPuB57NmBD",
    "username": "john.doe"
  },
  "success": true
}

Change Log

VersionDescription
0.42.0Added