authenticate the contacts
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>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.
Was this page helpful?
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>"
}