com.atproto.server.getServiceAuth
GET/xrpc/com.atproto.server.getServiceAuth
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
Query Parameters
The DID of the service that the token will be used to authenticate with
The 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.
Lexicon (XRPC) method to bind the requested token to
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
{
"token": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [InvalidRequest
, ExpiredToken
, InvalidToken
, BadExpiration
]
{
"error": "InvalidRequest",
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}