com.atproto.server.get Service Auth

GET {{baseUrl}}/xrpc/com.atproto.server.getServiceAuth?aud=<did>&exp=<integer>&lxm=<nsid>

This endpoint is part of the atproto PDS server and account management APIs. Requests often require authentication and are made directly to the user's own PDS instance.

To learn more about calling atproto API endpoints like this one, see the API Hosts and Auth guide.

Get a signed token on behalf of the requesting DID for the requested service.

Request Params

KeyDatatypeRequiredDescription
audstring(Required) The DID of the service that the token will be used to authenticate with
expstringThe time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope.
lxmstringLexicon (XRPC) method to bind the requested token to

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;token&quot;:&quot;\u003cstring\u003e&quot;}