Backfill in-progress. Some lexicons and records may be missing or incomplete.

com.atproto.server.getServiceAuth

atproto-lexicons.bsky.social

Documentation

main query

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

Parameters

aud string did Required

The DID of the service that the token will be used to authenticate with

exp integer Optional

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.

lxm string nsid Optional

Lexicon (XRPC) method to bind the requested token to

Output

Encodingapplication/json
token string Required

No description provided.

Errors

BadExpiration Indicates that the requested expiration date is not a valid. May be in the past or may be reliant on the requested scopes.
Try It

Direct PDS XRPC methods (com.atproto.*) are disabled in Try It for security reasons.

These methods interact directly with Personal Data Servers and require careful handling. Use a dedicated client or CLI tool instead.
View raw schema
{
  "type": "query",
  "errors": [
    {
      "name": "BadExpiration",
      "description": "Indicates that the requested expiration date is not a valid. May be in the past or may be reliant on the requested scopes."
    }
  ],
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "token"
      ],
      "properties": {
        "token": {
          "type": "string"
        }
      }
    },
    "encoding": "application/json"
  },
  "parameters": {
    "type": "params",
    "required": [
      "aud"
    ],
    "properties": {
      "aud": {
        "type": "string",
        "format": "did",
        "description": "The DID of the service that the token will be used to authenticate with"
      },
      "exp": {
        "type": "integer",
        "description": "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."
      },
      "lxm": {
        "type": "string",
        "format": "nsid",
        "description": "Lexicon (XRPC) method to bind the requested token to"
      }
    }
  },
  "description": "Get a signed token on behalf of the requesting DID for the requested service."
}

Lexicon Garden

@