/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 Fieldsobject
Account configuration settings
Authentication
POST /auth/login
Authenticate a user with credentials. Request Bodystring
User’s email address (when email login is enabled)
string
User’s username (when username login is enabled)
string
User’s phone number in E.164 format (when phone login is enabled)
string
required
User’s password
login action.
POST /auth/signup
Register a new user account. Request Bodystring
required
User’s email address
string
Desired username (if username field is configured)
string
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 Bodystring
Email address to send the code to
string
Phone number to send the code to (E.164 format)
login_by_code flow.
POST /auth/code/confirm
Confirm a login code. Request Bodystring
required
The 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 Bodystring
required
User’s current password
reauthenticate action.
Email Verification
GET /auth/email/verify
Verify an email address. Headersstring
required
The verification key from the email link or code
string
The email address being verified
object
User information
boolean
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 Bodystring
required
The 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 Bodystring
required
The 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 Bodystring
required
Email 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. Headersstring
required
The reset key from the email link or code
object
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 Bodystring
required
The reset key (for link-based reset)
string
required
New password
reset_password_from_key action.
POST /account/password/change
Change the password for an authenticated user. Request Bodystring
Current password (omit if setting password for the first time)
string
required
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.string
Email address
boolean
Whether the email is verified
boolean
Whether this is the primary email
POST /account/email
Add a new email address. Request Bodystring
required
New email address to add
manage_email action.
DELETE /account/email
Remove an email address. Request Bodystring
required
Email address to remove
manage_email action.
PATCH /account/email
Mark an email address as primary. Request Bodystring
required
Email address to mark as primary
manage_email action.
PUT /account/email
Resend verification email. Request Bodystring
required
Email 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).string
Phone number in E.164 format
boolean
Whether the phone is verified
POST /account/phone
Change phone number (initiates verification). Request Bodystring
required
New 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 Bodystring
required
Provider ID (e.g.,
google, github)string
URL to redirect to after authentication
string
Either
login or connectstring
URL to redirect the user to for OAuth authorization
POST /auth/provider/token
Authenticate using provider token (for mobile apps). Request Bodystring
required
Provider ID
string
OAuth access token
string
OAuth ID token (for OpenID Connect)
string
OAuth client ID (required for some providers)
POST /auth/provider/signup
Complete social account signup. Request Bodystring
Email 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 Bodystring
required
TOTP 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 Fieldsstring
TOTP secret (when generating new)
string
Data URL for QR code
POST /account/authenticators/totp
Activate TOTP authenticator. Request Bodystring
required
TOTP 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 Bodystring
required
Valid refresh token
string
New access token
string
New refresh token (if rotation is enabled)
Common Response Types
AuthenticationResponse
Returned by most authentication-related endpoints.object
Response data
object
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
