Skip to content

Instantly share code, notes, and snippets.

@phoozle
Created November 27, 2024 05:59
Show Gist options
  • Save phoozle/3bdd0c16b92d93ea6b1b04b5b8b577ff to your computer and use it in GitHub Desktop.
Save phoozle/3bdd0c16b92d93ea6b1b04b5b8b577ff to your computer and use it in GitHub Desktop.
Bluesky PDS - use your domain as your handle
## How to change your handle in BlueSky on your PDS to match your domain
# Instead of john.example.me you can have example.me
# You must first create the john.example.me account to then update it's handle
#
# (I was having a lot of trouble doing this via the web UI)
#
#
# Request a new session
# Take note of accessJwt you'll need it for the next step
#
curl -X POST \
https://example.me/xrpc/com.atproto.server.createSession \
-H 'Content-Type: application/json' \
-d '{"identifier":"<account username>","password":"<account password>"}'
#
# Use the accessJwt for the Authorization header
# Replace example.com with your own domain
#
curl -X POST \
https://example.me/xrpc/com.atproto.identity.updateHandle \
-H 'Authorization: Bearer <accessJwt here>' \
-H 'Content-Type: application/json' \
-d '{"handle":"example.me"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment