{"path":"/account_setup","session":false,"flow":["1. POST email. Response is id. A 6-char confirmation_id is emailed. It expires 30 minutes after created.","2. POST id, confirmation_id, first_name, last_name, and optional company_name. After 5 wrong confirmation_ids the id is cancelled; start again with step 1.","3. That writes person, email, optional company, and a brand row. The brand stored on those rows is the new brand code.","4. If company_name is entered, one relation row is written for the new person and that company.","5. The new person gets LOGIN read, and create, read, update, and delete on FILE, CRM, NOTE, DNS, and DOMAIN.","6. A second email delivers the brand code. Use it with /session. It is never returned in JSON."],"step1":{"required":["email"],"returns":["id"]},"step2":{"required":["id","confirmation_id","first_name","last_name"],"optional":["company_name"],"returns":["person_id","company_id","relation_id","brand_emailed"]},"javascript":"const step1 = await fetch('/account_setup/', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ email: 'person@example.com' }) }).then(r => r.json());"}