AT Protocol · Schema

AT Protocol Session

Authentication session object returned by com.atproto.server.createSession and com.atproto.server.refreshSession. Contains JWT tokens for authenticated API access.

Social NetworkingDecentralizedFederatedOpen-SourceBlueskyFediverseIdentityXRPCLexicon

Properties

Name Type Description
accessJwt string Short-lived access JWT for authenticating API requests
refreshJwt string Long-lived refresh JWT for obtaining new access tokens
handle string The user's AT Protocol handle (e.g., user.bsky.social)
did string The user's Decentralized Identifier (DID)
didDoc object Full W3C DID document for the user
email string Email address on file for the account
emailConfirmed boolean Whether the email address has been verified
emailAuthFactor boolean Whether email-based two-factor authentication is enabled
active boolean Whether the account is currently active
status string Account status if not active
View JSON Schema on GitHub

JSON Schema

atproto-session-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/atproto/main/json-schema/atproto-session-schema.json",
  "title": "AT Protocol Session",
  "description": "Authentication session object returned by com.atproto.server.createSession and com.atproto.server.refreshSession. Contains JWT tokens for authenticated API access.",
  "type": "object",
  "required": ["accessJwt", "refreshJwt", "handle", "did"],
  "properties": {
    "accessJwt": {
      "type": "string",
      "description": "Short-lived access JWT for authenticating API requests"
    },
    "refreshJwt": {
      "type": "string",
      "description": "Long-lived refresh JWT for obtaining new access tokens"
    },
    "handle": {
      "type": "string",
      "description": "The user's AT Protocol handle (e.g., user.bsky.social)",
      "pattern": "^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"
    },
    "did": {
      "type": "string",
      "description": "The user's Decentralized Identifier (DID)",
      "pattern": "^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$"
    },
    "didDoc": {
      "type": "object",
      "description": "Full W3C DID document for the user",
      "additionalProperties": true
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Email address on file for the account"
    },
    "emailConfirmed": {
      "type": "boolean",
      "description": "Whether the email address has been verified"
    },
    "emailAuthFactor": {
      "type": "boolean",
      "description": "Whether email-based two-factor authentication is enabled"
    },
    "active": {
      "type": "boolean",
      "description": "Whether the account is currently active"
    },
    "status": {
      "type": "string",
      "description": "Account status if not active",
      "enum": ["takendown", "suspended", "deactivated"]
    }
  },
  "examples": [
    {
      "accessJwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJzY29wZSI6ImNvbS5hdHByb3RvLmFjY2VzcyIsInN1YiI6ImRpZDpwbGM6ZXhhbXBsZTEyMyIsImlhdCI6MTcxNzg0NjQwMCwiZXhwIjoxNzE3ODQ3MzAwfQ.signature",
      "refreshJwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJzY29wZSI6ImNvbS5hdHByb3RvLnJlZnJlc2giLCJzdWIiOiJkaWQ6cGxjOmV4YW1wbGUxMjMiLCJpYXQiOjE3MTc4NDY0MDAsImV4cCI6MTcxODQ1MTIwMH0.signature",
      "handle": "alice.bsky.social",
      "did": "did:plc:example123abc",
      "email": "alice@example.com",
      "emailConfirmed": true,
      "emailAuthFactor": false,
      "active": true
    }
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/atproto-session"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.