Archie Auth exposes the full auth surface through the platform’s unified GraphQL API. This page is the operation reference — every mutation and query, with example payloads. For the equivalent HTTP endpoints, see the REST API reference.Documentation Index
Fetch the complete documentation index at: https://archie.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Required headers
| Header | Required | Description |
|---|---|---|
Authorization | For authenticated operations | Bearer access token. |
X-Project-Id | Yes | Your project identifier. |
environment | Yes | Target environment name (e.g., master). |
User mutations
authSignup
Register a new user account.
userId and a confirmation message. A verification email is sent if email verification is enabled in the project settings.
authLogin
Authenticate with email and password.
authConfirmSignup
Confirm an email with the 6-digit verification code.
authLogin call needed.
authRecoverPassword
Request a password recovery email. Always returns success to prevent email enumeration.
authResetPassword
Reset a password using the recovery code from the recovery email.
authRefreshToken
Exchange a refresh token for a new access/refresh token pair.
Admin mutations
These mutations require admin-level authentication. Attach theadmin role (or another role with the necessary permissions) to a user or API key and use that token to call them.
adminResendVerification
Re-send the verification code to a specific user.
adminForceLogout
Invalidate the refresh token of a specific user. Their access token continues to work until natural expiry; the next refresh fails.
adminForceLogoutAll
Invalidate every refresh token in the current environment. Use after a security incident.
adminToggleUserStatus
Block or unblock a user account. Blocked users cannot log in.
Admin queries
adminListCredentials
List every registered credential in the current environment.
Auth configuration mutations
These manage the auth setup for the current project + environment. They require admin-level authentication.enableProjectAuth
Enable Archie Auth for the current environment. Generates the signing and encryption key pairs, creates the _auth_credentials table, and registers the identity service.
disableProjectAuth
Disable Archie Auth. Optionally drop the _auth_credentials table — keep it to preserve user records if you intend to re-enable later.
configureProjectAuth
Update auth settings for the current environment. Every field is optional — pass only the fields you want to change.
rotateAuthKeys
Rotate signing and/or encryption keys. Old keys are kept for a 1-hour grace period so existing tokens stay valid through the rollover.
keyType accepts "signing", "encryption", or "both" (default "both").
Configuration query
getProjectAuth
Read the current auth configuration for the active environment.
FAQ
Why don't admin operations show up in the GraphQL Documentation panel?
Why don't admin operations show up in the GraphQL Documentation panel?
Admin operations require admin-level authentication. The Documentation panel reflects the schema available to your current token — if you’re logged in with a non-admin role, admin operations are filtered out. Switch to an admin token to see them.
Can I run these operations from the GraphQL API Explorer?
Can I run these operations from the GraphQL API Explorer?
Yes. The Explorer authenticates as your workspace user, so all admin operations are available without extra setup. Outside the Explorer, attach an admin token (or API key) on each request.
Are there subscriptions for auth events?
Are there subscriptions for auth events?
Auth events are emitted as system events —
auth.user.registered, auth.user.login.success, etc. — but not as GraphQL subscriptions. Consume them via webhooks or custom functions. See Security → Authentication events.What's the right way to handle a refresh-token rotation race?
What's the right way to handle a refresh-token rotation race?
Single-flight the refresh on the client — only one in-flight refresh at a time. If two tabs trigger refresh simultaneously, the second one fails with
AUTH_TOKEN_INVALID because the first already rotated the token. Coordinate via a shared lock or a single-tab refresh worker.How do I configure the password policy without the dashboard?
How do I configure the password policy without the dashboard?
Call
configureProjectAuth with the passwordPolicy field set. Useful for codifying configuration alongside infra-as-code.