POST
/
widget
/
authenticate-user
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",
  "customData": {
    "customKey": "customValue"
  }
}'
{
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
email
string
required

The email of the user to authenticate

Example:

"jhon@example.com"

name
string

The name of the user to authenticate

Example:

"John Doe"

avatar_url
string | null

The URL of the user's avatar

Example:

"https://example.com/avatar.png"

phone
string

contact's phone number including the conutry code

Example:

"+1234567890"

customData
object

Custom data

Example:
{ "customKey": "customValue" }

Response

201
application/json
token
string
required

The JWT token to use for further requests