Client account
What you need in the ERP
Section titled “What you need in the ERP”- client accounts enabled and a portal created
- the portal linked to the site (or the portal key)
- your own SMTP configured, for confirmation and password emails
Prompt
Section titled “Prompt”Paste it after the base prompt, then add Design without the AI look.
Build the client area on /api/site/v1/account.
Read GET /account/portal: it says whether registration is open or invite only and which sections are active. The interface adapts to the response.
Screens:- Sign in, register (if allowed), email confirmation, forgotten password, new password, invitation acceptance.- Profile: GET and PATCH /account/me.- My appointments, my orders, my events (with tickets), the data sets from /account/data.
Security:- login returns session_token. Put it in an httpOnly, Secure, SameSite=Lax cookie set by your server.- Your server sends it as X-Account-Session. The browser sees neither the key nor the token.- On 401 delete the cookie, send the person to sign in and then back.- CSRF protection on your own writing routes.- Sign in and reset messages never reveal whether an email exists.
Post-login redirects accept only paths on your own site.
Performance and privacy:- Nothing from the account in a shared cache: private, no-store, so "Back" after sign out shows no old data.- Start the page's requests in parallel.