File DA-006 View as Markdown
Accounts
This page covers signing up, what you get back, and who on your team can do what. You need an account to claim a domain, get keys and see your data in the portal.
Sign up
Pick one way. All three give you the same account, with your first site and its keys.
Go to Get started, free, enter your email and open the sign-in link. Add your site, copy the snippet it shows (with your public key) and verify the domain.
npx @doubleagent-so/cli init --email you@company.com
This creates the account and a site, puts the public key in your snippet and prints a test secret key once. Already have an account? Use npx @doubleagent-so/cli login.
POST /v1/accounts with { "email": "you@company.com", "domain": "shop.example.com" }. It needs a small proof of work in the DA-PoW header; the CLI solves it for you (npx @doubleagent-so/cli create-account --email …). See the REST API for the exact format.
You get back:
| What | Notes |
|---|---|
A public key, pk_live_… and pk_test_… | Goes in data-key. The test key also works on localhost. |
A test secret key, sk_test_… | Shown once. Server only. Create live secret keys under API keys. |
| A verify token for your domain | Use it to claim the domain. |
Keys work right away. Your data stays hidden until you have confirmed your email and verified the domain. Sign-up is limited to 5 per IP address an hour and 3 per email a day.
Log in
You log in with a link sent to your email. The link works once and expires after 15 minutes. A session lasts 30 days and renews while you use it. Log out everywhere ends all your sessions. The CLI logs in with a device code instead (npx @doubleagent-so/cli login).
Your team
Invite people from the portal's Team page. An invitation is for Admin or Viewer and expires after 7 days. Owners can make someone else an Owner.
| Role | Can |
|---|---|
| Owner | Everything, including deleting sites, account settings, billing, managing Owners and closing the account |
| Admin | Sites, domains, keys, site settings, public agents, and inviting Admins and Viewers |
| Viewer | See sites, data and public agents, label sessions, see the team |
An account always keeps at least one Owner. AI agents can join too, as Viewer or Admin but never Owner, after an Owner or Admin approves them by email. They can't see or change the team. See Agent access.
Next: claim your domain, then find your way around the portal.