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.identity namespace provides lexicons for resolving and managing decentralized identifiers (DIDs) and handles in the AT Protocol.
Key Concepts
- DID: Decentralized Identifier (e.g.,
did:plc:z72i7hdynmk6r22z27h6tvur) - Handle: Human-readable identifier (e.g.,
alice.bsky.social) - DID Document: JSON document containing identity information and service endpoints
- PLC Operations: Operations for managing DID:PLC identities
Queries
resolveHandle
Resolves an atproto handle to a DID. Endpoint:com.atproto.identity.resolveHandle
The handle to resolve (e.g.,
alice.bsky.social)The resolved DID for the handle
HandleNotFound: The handle does not resolve to any DID
resolveDid
Resolves a DID to its DID document. Endpoint:com.atproto.identity.resolveDid
The DID to resolve (e.g.,
did:plc:z72i7hdynmk6r22z27h6tvur)resolveIdentity
Resolves a handle or DID to complete identity information, including validated handle and DID document. Endpoint:com.atproto.identity.resolveIdentity
Handle or DID to resolve
The resolved DID
The validated handle, or
handle.invalid if handle does not match DID documentThe complete DID document for the identity
getRecommendedDidCredentials
Get recommended PLC credentials for creating a new DID. Endpoint:com.atproto.identity.getRecommendedDidCredentials
No parameters required.
Response: Returns recommended signing and rotation keys for creating a new DID.
Procedures
updateHandle
Update the current account’s handle. Endpoint:com.atproto.identity.updateHandle
Authentication: Required
The new handle to use for the account
requestPlcOperationSignature
Request a signature for a PLC operation from the PDS. Endpoint:com.atproto.identity.requestPlcOperationSignature
Authentication: Required
Response: Returns signature data for submitting a PLC operation.
signPlcOperation
Sign a PLC operation. Endpoint:com.atproto.identity.signPlcOperation
Authentication: Required
Used to sign operations for modifying DID:PLC documents.
submitPlcOperation
Submit a signed PLC operation. Endpoint:com.atproto.identity.submitPlcOperation
Authentication: Required
Submits a signed operation to update a DID:PLC document.
refreshIdentity
Refresh the cached identity information for an account. Endpoint:com.atproto.identity.refreshIdentity
Authentication: Required
Triggers the PDS to refresh cached handle and DID document information.
Type Definitions
identityInfo
Complete identity information including DID, handle, and DID document.The DID of the identity
The validated handle, or
handle.invalid if validation failedThe complete DID document
Common Use Cases
Resolving a User by Handle
Updating Your Handle
Bi-directional Validation
Handles must validate bi-directionally:- Handle → DID: DNS TXT record or HTTPS file points to DID
- DID → Handle: DID document
alsoKnownAsfield includes handle
handle.invalid.
Related Lexicons
- com.atproto.server - Account creation and session management
- app.bsky.actor - User profiles