API · Dashboard auth
Exchange the emailed code for a 30-day session. Creates the user on first sign-in.
POST /v1/auth/email/verify
| Request | POST /v1/auth/email/verify |
| Operation id | auth.email.verify |
| Cost | Free |
| Auth | None. |
Codes last 10 minutes and allow 5 tries; only the most recent code works. A new person gets a personal account with the signup credits.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
email | string | yes | |
code | string | yes |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Signed in. | Session |
400 | Wrong, expired or used code (invalid_code). | Error |
Session fields
| Field | Type | Description |
|---|---|---|
session_token | string | Send as "Authorization: Bearer <session_token>". Also set as an HttpOnly cookie. |
expires_at | string | |
is_new_user | boolean | |
user | User | |
accounts | MemberAccount[] |
Errors use one shape everywhere; see Errors for every code and what to do.