Overview
Thecom.atproto.admin namespace provides lexicons for administrative operations on a Personal Data Server (PDS). These operations are restricted to server administrators.
Key Concepts
- Admin Authentication: Operations require admin-level credentials
- Account Management: Administrative account operations
- Subject Status: Moderation status of accounts and content
- Invite System: Managing invite codes
- Email Management: Administrative email operations
Account Queries
getAccountInfo
Get detailed information about an account. Endpoint:com.atproto.admin.getAccountInfo
Authentication: Admin required
DID of the account
Account DID
Account handle
Account email address
Related records
When account was indexed
Invite code used to create account
Invite codes created by this account
Whether invite creation is disabled
When email was confirmed
Note about the account’s invitation
When account was deactivated
getAccountInfos
Get information about multiple accounts. Endpoint:com.atproto.admin.getAccountInfos
Authentication: Admin required
Array of DIDs to query
searchAccounts
Search for accounts. Endpoint:com.atproto.admin.searchAccounts
Authentication: Admin required
Search by email address
Pagination cursor
Maximum results (1-100, default 50)
Next page cursor
Array of account information
Account Management
deleteAccount
Permanently delete an account. Endpoint:com.atproto.admin.deleteAccount
Authentication: Admin required
DID of the account to delete
updateAccountEmail
Update an account’s email address. Endpoint:com.atproto.admin.updateAccountEmail
Authentication: Admin required
DID or handle of the account
New email address
updateAccountHandle
Update an account’s handle. Endpoint:com.atproto.admin.updateAccountHandle
Authentication: Admin required
DID of the account
New handle
updateAccountPassword
Update an account’s password. Endpoint:com.atproto.admin.updateAccountPassword
Authentication: Admin required
DID of the account
New password
updateAccountSigningKey
Update an account’s signing key. Endpoint:com.atproto.admin.updateAccountSigningKey
Authentication: Admin required
DID of the account
New signing key
Invite Management
disableAccountInvites
Disable invite code creation for an account. Endpoint:com.atproto.admin.disableAccountInvites
Authentication: Admin required
DID or handle of the account
Note about why invites were disabled
enableAccountInvites
Enable invite code creation for an account. Endpoint:com.atproto.admin.enableAccountInvites
Authentication: Admin required
DID or handle of the account
Note about enabling invites
getInviteCodes
Get invite codes. Endpoint:com.atproto.admin.getInviteCodes
Authentication: Admin required
Sort order:
recent or usageMaximum codes to return (1-500, default 100)
Pagination cursor
Next page cursor
Array of invite codes
disableInviteCodes
Disable one or more invite codes. Endpoint:com.atproto.admin.disableInviteCodes
Authentication: Admin required
Array of invite codes to disable
Disable all codes for these accounts
Subject Status
getSubjectStatus
Get moderation status of a subject (account or record). Endpoint:com.atproto.admin.getSubjectStatus
Authentication: Admin required
DID of subject (for account status)
AT-URI of subject (for record status)
CID of blob
updateSubjectStatus
Update moderation status of a subject. Endpoint:com.atproto.admin.updateSubjectStatus
Authentication: Admin required
Subject to update (account, record, or blob reference)
Takedown action to apply
Deactivation status
Email Operations
sendEmail
Send an email to a user. Endpoint:com.atproto.admin.sendEmail
Authentication: Admin required
DID of the recipient
Email content
Email subject line
DID of sender (defaults to system)
Internal comment about the email
Type Definitions
accountView
Detailed account information for administrators.Account DID
Account handle
Email address
Related moderation records
Indexing timestamp
Invite code information
Invite codes created by account
Whether invites are disabled
Email confirmation timestamp
Admin note about invitation
Deactivation timestamp
statusAttr
Status attribute for moderation.Whether the status is applied
Reference ID for the status
repoRef
Reference to a repository (account).DID of the repository
repoBlobRef
Reference to a blob in a repository.DID of the repository
CID of the blob
AT-URI of the record containing the blob
Common Use Cases
Investigating an Account
Managing Invite Codes
Moderating Content
Bulk Account Management
Related Lexicons
- com.atproto.server - Account operations
- com.atproto.moderation - Moderation reporting
- tools.ozone.moderation - Full moderation service