/v1/ and support both browser and app clients.
Base URL Structure
Endpoints are organized by client type:- Browser client:
/_allauth/browser/v1/ - App client:
/_allauth/app/v1/
- Browser: Uses session cookies
- App: Uses token-based authentication (session tokens or JWTs)
Configuration
GET /config
Returns the current authentication configuration. Response FieldsAccount configuration settings
Authentication
POST /auth/login
Authenticate a user with credentials. Request BodyUser’s email address (when email login is enabled)
User’s username (when username login is enabled)
User’s phone number in E.164 format (when phone login is enabled)
User’s password
login action.
POST /auth/signup
Register a new user account. Request BodyUser’s email address
Desired username (if username field is configured)
Account password (required unless passwordless signup is configured)
200 OK: User created and authenticated403 Forbidden: Signup is disabled409 Conflict: User is already authenticated
signup action.
GET /auth/session
Retrieve the current session state. Response Returns an AuthenticationResponse with current user information or 401 if not authenticated.DELETE /auth/session
Log out the current user. Response Returns an AuthenticationResponse withis_authenticated: false.
POST /auth/code/request
Request a login code for passwordless authentication. Request BodyEmail address to send the code to
Phone number to send the code to (E.164 format)
login_by_code flow.
POST /auth/code/confirm
Confirm a login code. Request BodyThe verification code received via email or SMS
200 OK: Code verified, user authenticated409 Conflict: No pending login code verification
POST /auth/reauthenticate
Re-authenticate the current user (for sensitive operations). Request BodyUser’s current password
reauthenticate action.
Email Verification
GET /auth/email/verify
Verify an email address. HeadersThe verification key from the email link or code
The email address being verified
User information
Whether this verification is part of an authentication flow
200 OK: Verification key is valid409 Conflict: No pending verification
POST /auth/email/verify
Complete email verification. Request BodyThe verification key
POST /auth/email/verify/resend
Resend email verification code. Response Returns status 200 if resent successfully. Status Codes200 OK: Code resent409 Conflict: No pending verification or resend not available429 Too Many Requests: Rate limited
Phone Verification
POST /auth/phone/verify
Verify a phone number with a code. Request BodyThe verification code received via SMS
200 OK: Phone verified409 Conflict: No pending phone verification
POST /auth/phone/verify/resend
Resend phone verification code. Response Returns status 200 if resent successfully. Status Codes429 Too Many Requests: Rate limited
Password Management
POST /auth/password/request
Request a password reset. Request BodyEmail address of the account
200 OK: Reset initiated (if account exists)429 Too Many Requests: Rate limited
GET /auth/password/reset
Validate a password reset key. HeadersThe reset key from the email link or code
User information for the account being reset
200 OK: Reset key is valid409 Conflict: No pending password reset
reset_password_from_key action.
POST /auth/password/reset
Complete password reset with new password. Request BodyThe reset key (for link-based reset)
New password
reset_password_from_key action.
POST /account/password/change
Change the password for an authenticated user. Request BodyCurrent password (omit if setting password for the first time)
New password
change_password action.
Email Management
GET /account/email
List all email addresses for the current user. Response Returns an array of email address objects.Email address
Whether the email is verified
Whether this is the primary email
POST /account/email
Add a new email address. Request BodyNew email address to add
manage_email action.
DELETE /account/email
Remove an email address. Request BodyEmail address to remove
manage_email action.
PATCH /account/email
Mark an email address as primary. Request BodyEmail address to mark as primary
manage_email action.
PUT /account/email
Resend verification email. Request BodyEmail address to resend verification for
200 OK: Verification sent403 Forbidden: Verification not sent (rate limited or already verified)
manage_email action.
Phone Management
GET /account/phone
Get the current phone number. Response Returns an array with the phone number (if set).Phone number in E.164 format
Whether the phone is verified
POST /account/phone
Change phone number (initiates verification). Request BodyNew phone number in E.164 format
verified: false.
Status Codes
202 Accepted: Verification code sent
change_phone action.
Social Account Endpoints
Available whenSOCIALACCOUNT_ENABLED is True.
POST /auth/provider/redirect
Initiate OAuth provider redirect flow. Request BodyProvider ID (e.g.,
google, github)URL to redirect to after authentication
Either
login or connectURL to redirect the user to for OAuth authorization
POST /auth/provider/token
Authenticate using provider token (for mobile apps). Request BodyProvider ID
OAuth access token
OAuth ID token (for OpenID Connect)
OAuth client ID (required for some providers)
POST /auth/provider/signup
Complete social account signup. Request BodyEmail to use (if not provided by OAuth)
GET /account/providers
List connected social accounts. Response Returns an array of connected provider accounts. Authentication: RequiredMFA Endpoints
Available whenMFA_ENABLED is True.
POST /auth/2fa/authenticate
Authenticate with a second factor. Request BodyTOTP code or recovery code
GET /account/authenticators
List configured MFA authenticators. Response Returns an array of authenticator objects. Authentication: RequiredGET /account/authenticators/totp
Get TOTP authenticator details or generate new secret. Response FieldsTOTP secret (when generating new)
Data URL for QR code
POST /account/authenticators/totp
Activate TOTP authenticator. Request BodyTOTP code to verify setup
Token Endpoints (App Client Only)
Available only for theapp client.
POST /tokens/refresh
Refresh an access token using a refresh token. Request BodyValid refresh token
New access token
New refresh token (if rotation is enabled)
Common Response Types
AuthenticationResponse
Returned by most authentication-related endpoints.Response data
Metadata
Error Responses
All endpoints may return error responses with validation errors. Error Response Formatrequired: Required field is missinginvalid: Field value is invalidemail_password_mismatch: Invalid email/password combinationusername_password_mismatch: Invalid username/password combinationtoo_many_login_attempts: Login temporarily blocked due to failed attempts
Status Codes
200 OK: Request successful202 Accepted: Request accepted, pending further action400 Bad Request: Invalid request data401 Unauthorized: Authentication required or failed403 Forbidden: Action not allowed409 Conflict: Request conflicts with current state429 Too Many Requests: Rate limit exceeded500 Internal Server Error: Server error
