# Email + AgentDB

Email + one-time passcode is the self-service front door: a LoginAction that provisions a free-tier org on first login.

> HTML version: https://staging.agentdb.com/integrations/email — this file (/docs/integrations/email.md) is its markdown twin.

This page is the [Sign in](/start#sign-in) stage of the
[workflow](/start) in depth — limits, guarantees, and response shapes.

## Email is the self-service front door

No signup form: request a one-time passcode by email, verify it, and your
first login provisions a free-tier organization automatically
(`is_new_user: true` in the response — no separate registration step).

Request the code — a `LoginAction` with just your email, `POST` to
`https://api.agentdb.com/api/action/admin`, no auth header:

```jsonld
{
  "@context": "https://schema.org/",
  "@type": "LoginAction",
  "object": { "@type": "Person", "email": "you@example.com" }
}
```

Verify the 6-digit code from your inbox — same action plus an `instrument`
named `code`; the response's `result.text` is your JWT:

```jsonld
{
  "@context": "https://schema.org/",
  "@type": "LoginAction",
  "object": { "@type": "Person", "email": "you@example.com" },
  "instrument": { "@type": "PropertyValue", "name": "code", "value": "123456" }
}
```

Codes expire in 10 minutes, and the request step always returns 200 so
email addresses cannot be enumerated. (`LoginAction` is one of the public
auth actions on the admin plane — a platform extension of the Schema.org
action vocabulary.)

This is the path a human takes; agents usually skip it and
[pair with a token](/start) instead.
