Overview
In Bluesky, mutual resolution of handles, DIDs, and related identities is often required.Handle to DID
Using the API
Using DNS or well-known
Check a DNS TXT record or/.well-known/atproto-did.
DID to DID Document
resolveDID returns the DID Document.
https://plc.directory/did:plc:ewvi7nxzyoun6zhxrhs64oiz
DID Document to Handle
ThealsoKnownAs field in the DID Document contains the handle.
resolveIdentity
resolveIdentity combines resolveHandle and resolveDID. You can resolve from either a DID or a handle, and it returns the DID Document.
Public profile
You can look up a public profile from either a DID or a handle. The response includes both the DID and handle.PDS URL / serviceEndpoint
TheserviceEndpoint in the DID Document is the PDS URL. You are unlikely to need this directly, but it is available.
Authorization Server URL
Resolve the Authorization Server URL via the PDS. For accounts registered on Bluesky, this is typicallyhttps://bsky.social.
Source: docs/identity.md