# Team and access

Covers: signing up, an organization's members and their roles, invitations, the API keys that reach the organization, and your account.

For: the person who signs up first, the Admins who invite others, and anyone who needs a key for a script.

Every account works inside an organization. Its Admins decide who is in it, with which role, and make the API keys that
scripts and agents use. All of it is on one page: Settings, [Account](https://client-test.poema.dev/dashboard/settings?tab=account).

## Sign up

[Sign up](https://client-test.poema.dev/sign-up) with Google, or with an email address and a password of at least 15 characters. Already have an
account? [Sign in](https://client-test.poema.dev/sign-in). For an email sign-up poema sends a link to confirm the address; until you open it, signing
in answers "Verify your email first", and "Send the link again" sends another. A new account gets an organization of its
own, with you as its Admin. Then tell us your name; the other questions are optional.

## Roles

An organization has two roles:

- **Admin:** changes the organization's settings, keys, network rules and members, and works with its instances. Whoever
  made the organization stays an Admin: no one demotes or removes them.
- **User:** works with the organization's instances, on the dashboard: only an Admin makes API keys, and `poema login`
  signs in Admins only.

## Invite a member

Settings, [Account](https://client-test.poema.dev/dashboard/settings?tab=account) lists the members and the open invitations.

![Settings, Account: one member, the Admin who made the organization, a note that the plan allows the owner alone, an empty API keys table with a Create key button, and the variables and commands that use a key.](https://client-test.poema.dev/docs/img/team.png)

1. On a plan with room for members, an Admin chooses **Invite**, gives an email address and a role, and chooses Send invite.
2. poema sends the invitation by email. It works once, for that address alone, for 7 days. If the email was not sent, copy
   the link before closing the form and send it yourself. The copied link is shown only once; if lost, cancel the
   invitation and make a new one.
3. The person opens it and signs in with Google or a password for that address: someone new chooses a password there,
   and a copied link also asks them to confirm their address by email. If already signed in with that address, choose
   Join followed by the organization's display name.

An expired or cancelled link says "This invite has expired. Ask your admin for a new one."

## Manage members

- **Change a role** or **Remove** a member: an Admin does it from the member's row. A removed member loses access at
  once, and the API keys they made with `poema login` are revoked. Rotate any other key they may have held.
- **Leave:** a member who did not make the organization chooses Leave on their own row, and needs a new invitation to come back.
- **Cancel** an open invitation: its link stops working.
- Making an Admin a User revokes the keys they made with `poema login`.

## Member limits

Free and Pro allow the owner alone. Invite opens the plans popup with the reason:
"Your plan allows the owner alone. Write to us for a team." ([Get help](https://client-test.poema.dev/docs/troubleshooting.md#get-help) says how.)
The invited plan allows 10 people, including the owner and open invitations
([Plans, limits and billing](https://client-test.poema.dev/docs/plans.md)). If members plus open invitations reach that limit, Invite opens the plans popup
before asking for an address. If the plan fills while the form is open, Send invite refuses the invitation and opens the
plans popup. Close the popup to read the limit message in the invitation form.

## API keys

Under API keys on the same page, an Admin makes the keys that the CLI, the Python SDK, `poema-mcp` and your scripts send as
`X-API-Key`. A key reaches your organization and nothing else, and looks like `poema_ns_XXXXXXXX_...`.

- **Create key** asks for a name and shows the key once. An organization holds up to 10 keys: keep one for each place a
  key is used, so that you can revoke it alone.
- **Rotate** makes a new key under the same name, and the old one stops working.
- **Revoke** stops a key at once.
- Every key you make here, and every key `poema login` makes, can do everything in your organization but make or revoke API keys
  and read its audit log: there are no narrower keys for customers yet.
- `poema login --url https://client-test.poema.dev` gives an Admin a key of their own, named `login-…`, with none to copy; a User cannot use
  it, as a User may not change the organization. It appears on the same list, and removing the member revokes it.

> **Warning:** A key is shown once, when it is made. Store it where your script reads it, such as `POEMA_API_KEY`.

## Your account

- **Forgot your password?** Choose "Forgot password?" on the [sign-in](https://client-test.poema.dev/sign-in) page and we email you a link.
- **Delete your account:** Settings, Account deletes your account. If you created the organization, this deletes it too,
  with its instances and their files, its API keys, model keys and members, and cannot be undone
  ([Privacy](https://client-test.poema.dev/privacy) says what is kept and for how long).

Last checked: unreleased checkout.
