Register New Agent or Manager

Register a new agent or manager.

HTTP MethodURLRequires Auth

POST

/api/v1/livechat/users/:type

Path Variables

KeyExample ValueDescription

type *

agent

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

Body

KeyExample ValueDescription

username*

john.doe

The 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.0

Added

Last updated

Rocket.Chat versions receive support for six months after release.