curl --request POST \
--url https://api.open.cx/widget/authenticate-user \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]",
"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": {},
"body_params": {},
"headers": {}
}
}
'{
"token": "<string>",
"contact": {
"id": "<string>"
}
}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": "[email protected]",
"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": {},
"body_params": {},
"headers": {}
}
}
'{
"token": "<string>",
"contact": {
"id": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The email of the user to authenticate
The name of the user to authenticate
"John Doe"
The URL of the user's avatar
"https://example.com/avatar.png"
contact's phone number including the conutry code
"+1234567890"
The user's language
en, fr, de, nl, pl, pt, es, it, ru, ja, ko, zh, ar, tr, sv, da, no, fi, el, cs, hu, th, vi, id, he, hi, uk, ro, bg, hr, sk, sl, sr, et, lv, lt, is, ga, ms, tl, fa, bn, ta, te, ur, sw, zu, af, sq, hy, az, eu, be, bs, ca, cy, tr Custom data
Show child attributes
{ "customKey": "customValue" }Optional context to be given to the AI agent when responding to this user.
HTTP parameter overrides to be used when executing actions for this user. Overrides org-level parameters, but is overridden by parameters passed when sending a message.
Show child attributes
Was this page helpful?