Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 926 Bytes

File metadata and controls

45 lines (36 loc) · 926 Bytes

Create Call Center Visitor

URL Requires Authentication HTTP Method
api/v1/livechat/visitor Yes POST

Payload

{
  "visitor": {
    "token": "867ad6a09fc4af29f6f1f2a9cf1deaba"
  }
}

Example Call

curl --location --request POST 'localhost:3000/api/v1/livechat/visitor' \
--header 'Content-Type: application/json' \
--data-raw '{
    "visitor": {
        "token": "867ad6a09fc4af29f6f1f2a9cf1deaba"
    }
}'

Example Response

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