Alphabet secures every API request with JWT bearer tokens. When you log in you receive a short-lived access token (valid for 15 minutes) and a longer-lived refresh token (valid for 7 days). Include the access token in every request, and exchange the refresh token for a new pair before it expires. If you prefer a browser-based client, you can opt in to cookie transport and Alphabet writesDocumentation Index
Fetch the complete documentation index at: https://alphabet-06152314.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
HttpOnly Secure cookies instead of returning the tokens in the response body.
The default admin account seeded at startup uses the email
admin@alphabet.local and the password Admin12345!. Change these credentials before deploying to any non-local environment.Including a token in requests
Pass the access token in theAuthorization header on every authenticated endpoint:
Registration, confirmation, and login
Register an account
Send your details to Request bodyResponse —
POST /api/v1/auth/register. On success the API returns 201 Created with the new user record. Email confirmation may be required before you can sign in.201 CreatedConfirm your email address
After registration, Alphabet sends a confirmation email. Extract the Request body
userId and token from the link and call POST /api/v1/auth/confirm-email. The response is 200 OK with no body.Log in
Call Request bodyResponse —
POST /api/v1/auth/login with your credentials. Set useCookies to true if you want Alphabet to write HttpOnly cookies instead of returning tokens in the response body.200 OKIf MFA is enabled on the account, the login response returns an
mfaToken instead of an accessToken. See the MFA guide for the follow-up steps.Password management
Forgot password
If a user cannot remember their password, callPOST /api/v1/auth/forgot-password with their email address. Alphabet always returns 200 OK regardless of whether the email matches an account, so you cannot use the response to enumerate users.
Reset password
Once the user receives the reset email, extract theuserId and token from the link and call POST /api/v1/auth/reset-password with their new password.
200 OK response means the password was changed successfully.
Change password
An authenticated user can change their own password by callingPOST /api/v1/auth/change-password. This endpoint requires a valid Authorization header.
Logout
CallPOST /api/v1/auth/logout to revoke the refresh token and clear any auth cookies. This endpoint requires a valid Authorization header.
refreshToken field is optional — Alphabet reads the token from the alphabet_refresh_token cookie automatically.
Get the current user
GET /api/v1/auth/me returns the identity of the user associated with the current access token. Requires a valid Authorization header.
200 OK
Cookie transport
When you setuseCookies: true in your login or refresh-token request, Alphabet writes two HttpOnly Secure SameSite=Lax cookies to the response:
| Cookie name | Contents |
|---|---|
alphabet_access_token | Short-lived JWT |
alphabet_refresh_token | Long-lived refresh token |
Authorization header takes precedence when both are present.
Error responses
All errors from the Alphabet API follow the RFC 7807 Problem Details format.| Status | Meaning |
|---|---|
400 Bad Request | Validation error or operation failure — check detail for the reason |
401 Unauthorized | Missing or expired access token |