Skip to content

Create Visitor

Request

Security
bearerAuth
Bodyapplication/jsonrequired
accountIdstringrequired

Third-party platform account ID

namestring or null
Any of:

Visitor name

string
phoneNumberstring or null
Any of:

Mobile number

string
emailstring or null
Any of:

Email address

string
avatarstring or null
Any of:

Avatar

string
languagestring or null
Any of:

Default language

string
extendMapobject or null
Any of:

Custom status

object
curl -i -X POST \
  https://threechatai.redocly.app/_mock/apis/3chat-api/api/open/v4/butler/visitor/create \
  -H 'Authorization: Bearer <YOUR_Access Token_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "accountId": "string",
    "name": "string",
    "phoneNumber": "string",
    "email": "string",
    "avatar": "string",
    "language": "string",
    "extendMap": {}
  }'

Responses

Headers
any
Bodyapplication/json
codeintegerrequired

Status code. 200 = success; 500 = failure.

messagestring or null
Any of:

Error message

string
dataobject or null
Any of:
Response
{ "code": 0, "message": "string", "data": { "id": "string" } }