Documentation Index
Fetch the complete documentation index at: https://mintlify.com/bluesky-social/atproto/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thecom.atproto.server namespace provides lexicons for account creation, authentication, session management, and server configuration.
Key Concepts
- Account: User account on a Personal Data Server (PDS)
- Session: Authenticated connection with access and refresh tokens
- App Password: Scoped authentication token for third-party apps
- Invite Code: Code required to create new accounts (optional)
Account Creation
createAccount
Create a new account. Endpoint:com.atproto.server.createAccount
Email address for the account
Requested handle for the account
Pre-existing DID being imported to new account
Invite code (if required by server)
Verification code from email or SMS
Phone number for verification
Initial account password
DID PLC rotation key for account recovery
Signed DID PLC operation for account migration
Access token for API requests
Refresh token for obtaining new access tokens
Account handle
Account DID
Complete DID document
InvalidHandle: Handle does not meet requirementsInvalidPassword: Password does not meet requirementsInvalidInviteCode: Invite code is invalid or expiredHandleNotAvailable: Handle is already takenUnsupportedDomain: Domain is not supported by server
deleteAccount
Delete an account. Endpoint:com.atproto.server.deleteAccount
Authentication: Required
DID of the account to delete
Account password for confirmation
Token from requestAccountDelete
requestAccountDelete
Request account deletion (sends confirmation token). Endpoint:com.atproto.server.requestAccountDelete
Authentication: Required
deactivateAccount
Temporarily deactivate an account. Endpoint:com.atproto.server.deactivateAccount
Authentication: Required
ISO 8601 datetime after which account will be permanently deleted
activateAccount
Reactivate a deactivated account. Endpoint:com.atproto.server.activateAccount
Authentication: Required
Session Management
createSession
Create an authentication session. Endpoint:com.atproto.server.createSession
Handle or email for authentication
Account password
Two-factor authentication token
Return narrow-scoped token for takendown accounts instead of error
Access token (short-lived)
Refresh token (long-lived)
Account handle
Account DID
DID document
Account email
Whether email is confirmed
Whether email 2FA is enabled
Whether account is active
Account status if not active:
takendown, suspended, or deactivatedAccountTakedown: Account has been taken downAuthFactorTokenRequired: 2FA token required
getSession
Get current session information. Endpoint:com.atproto.server.getSession
Authentication: Required
Response: Returns current session details including handle, DID, and email.
Example:
refreshSession
Refresh an authentication session. Endpoint:com.atproto.server.refreshSession
Authentication: Required (using refresh token)
Response: Returns new access and refresh tokens.
Example:
deleteSession
Delete the current session (logout). Endpoint:com.atproto.server.deleteSession
Authentication: Required
Example:
App Passwords
createAppPassword
Create an app-specific password. Endpoint:com.atproto.server.createAppPassword
Authentication: Required
Name for the app password
Whether this is a privileged app password
App password name
Generated app password (only shown once)
Creation timestamp
Whether privileged
listAppPasswords
List app passwords for the account. Endpoint:com.atproto.server.listAppPasswords
Authentication: Required
Response: Array of app passwords (without the actual password values).
revokeAppPassword
Revoke an app password. Endpoint:com.atproto.server.revokeAppPassword
Authentication: Required
Name of the app password to revoke
Email Management
updateEmail
Update account email address. Endpoint:com.atproto.server.updateEmail
Authentication: Required
New email address
Whether to enable email 2FA
Token from requestEmailUpdate
requestEmailUpdate
Request email update (sends confirmation). Endpoint:com.atproto.server.requestEmailUpdate
Authentication: Required
confirmEmail
Confirm email address. Endpoint:com.atproto.server.confirmEmail
Authentication: Required
Email to confirm
Confirmation token from email
requestEmailConfirmation
Request email confirmation. Endpoint:com.atproto.server.requestEmailConfirmation
Authentication: Required
Password Management
resetPassword
Reset account password. Endpoint:com.atproto.server.resetPassword
Token from requestPasswordReset
New password
requestPasswordReset
Request password reset. Endpoint:com.atproto.server.requestPasswordReset
Account email address
Server Information
describeServer
Get server description and configuration. Endpoint:com.atproto.server.describeServer
Response:
Available handle domains
Whether invite codes are required
Whether phone verification is required
Important links (privacy policy, terms of service)
checkAccountStatus
Check account status. Endpoint:com.atproto.server.checkAccountStatus
Authentication: Required
getServiceAuth
Get service authentication token. Endpoint:com.atproto.server.getServiceAuth
Authentication: Required
Audience (DID) for the service auth token
Lexicon method to grant access to
Expiration time (Unix timestamp)
Invite Codes
getAccountInviteCodes
Get invite codes for the account. Endpoint:com.atproto.server.getAccountInviteCodes
Authentication: Required
Include used invite codes
Create new codes if available
createInviteCode
Create a single invite code. Endpoint:com.atproto.server.createInviteCode
Authentication: Required
Number of uses allowed
Restrict to specific account
createInviteCodes
Create multiple invite codes. Endpoint:com.atproto.server.createInviteCodes
Authentication: Required
Number of codes to create
Uses per code
Restrict codes to specific accounts
Type Definitions
inviteCode
Invite code information.The invite code
Remaining uses
Whether disabled
Restricted to account
Creator DID
Creation timestamp
Array of invite code uses
Common Use Cases
Complete Authentication Flow
Using App Passwords
Related Lexicons
- com.atproto.identity - Identity management
- com.atproto.admin - Admin operations