POST
/
widget
/
authenticate-user
cURL
curl --request POST \
  --url https://api.open.cx/widget/authenticate-user \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jhon@example.com",
  "name": "John Doe",
  "avatar_url": "https://example.com/avatar.png",
  "phone": "+1234567890",
  "language": "en",
  "customData": {
    "customKey": "customValue"
  },
  "chat_context": "<string>",
  "http_action_overrides": {
    "query_params": {},
    "path_params": {},
    "headers": {}
  }
}'
{
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201
application/json

The response is of type object.