diff --git a/atproto.md b/atproto.md index 201fc2a..7e95c23 100644 --- a/atproto.md +++ b/atproto.md @@ -36,6 +36,15 @@ url=$api/com.atproto.repo.getRecord curl -sL "$url?repo=$did&collection=$collection&rkey=$rkey&cid="|jq . ``` +## did + +```sh +handle=yui.syui.ai +curl -sL "https://public.api.bsky.app/xrpc/com.atproto.identity.resolveHandle?handle=$handle" + +{"did":"did:plc:4hqjfn7m6n5hno3doamuhgef"} +``` + ## login ```sh