Skip to main content
POST
Authenticate a widget user
Call this endpoint from your backend after verifying the customer’s identity. Saved http_action_overrides are available to authenticated widget sessions; supplying the same email through non-verified visitor data does not grant access to them. mcp_access.credentials saves tokens your backend already holds for the user, so personal connections work without Connect. They are stored for the contact and never included in the returned token. See Skip Connect.

Authorizations

Authorization
string
header
required

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

Body

application/json
email
string<email>
required
Pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
mcp_access
object
name
string
avatar_url
string | null
phone
string
language
enum<string>
Available options:
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,
ku,
ckb,
kmr
customData
object
chat_context
string
http_action_overrides
object

Response

Default Response

token
string
required

The JWT token to use for further requests

contact
object
required