Ana içeriğe geç

Register a website end-user account (widget)

POST 

/api/widget/auth/register

PUBLIC endpoint. Creates a website end-user account (separate from staff users) for the visitor and returns an AUTHENTICATED widget-session token. If a session token is presented (the visitor was already chatting), the account links to that contact so their prior conversations carry over; otherwise a fresh saved contact is created. The email must be unique per tenant (422 otherwise). Passwords are bcrypt and never returned.

Request​

Responses​

Account created; an authenticated session is returned.