Sign Up and Onboard
Go from zero to an authenticated sandbox tenant. Human login or a wallet-based agent.
1. Sign up
curl -sX POST "$BRAIN/v1/signup" -H 'content-type: application/json' \
-d '{"email":"founder@example.com","password":"a-strong-passphrase-12+"}'
# β 201 { "tenant_id":"tnt_β¦", "user_id":"user_β¦", "status":"pending",
# "verification_token":"β¦" } # returned outside production; emailed in prod2. Verify your email
curl -sX POST "$BRAIN/v1/auth/verify-email" -H 'content-type: application/json' \
-d '{"tenant_id":"tnt_β¦","token":"<verification_token>"}'
# β 200 { "verified": true, "status": "active" }3. Log in for an owner token
curl -sX POST "$BRAIN/v1/auth/login" -H 'content-type: application/json' \
-d '{"email":"founder@example.com","password":"a-strong-passphrase-12+"}'
# β 200 { "access_token":"eyJβ¦", "expires_in":900,
# "principal": { "type":"user", "scopes":["ledger:read","wiki:read",
# "raw:read","raw:write","policy:read","policy:write","audit:read","execution:read","payment_intent:approve"] } }4. Bring in a wallet or an agent
What's Next
Last updated
