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
- 201
- 403
- 422
Account created; an authenticated session is returned.
The chat widget is disabled for this workspace.
The request failed validation.