AT Protocol · Example Payload

Atproto Createsession Example

Example request and response for com.atproto.server.createSession (login)

Social NetworkingDecentralizedFederatedOpen SourceBlueskyFediverseIdentityXRPCLexicon

Atproto Createsession Example is an example object payload from AT Protocol, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

descriptionendpointrequestresponse

Example Payload

Raw ↑
{
  "description": "Example request and response for com.atproto.server.createSession (login)",
  "endpoint": "POST https://bsky.social/xrpc/com.atproto.server.createSession",
  "request": {
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "identifier": "alice.bsky.social",
      "password": "hunter2"
    }
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "accessJwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJzY29wZSI6ImNvbS5hdHByb3RvLmFjY2VzcyIsInN1YiI6ImRpZDpwbGM6ejcyaTdoZHlubWs2cjIyejI3aDZ0dnVyIiwiaWF0IjoxNzE3ODQ2NDAwLCJleHAiOjE3MTc4NDczMDB9.EXAMPLE_SIGNATURE",
      "refreshJwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJzY29wZSI6ImNvbS5hdHByb3RvLnJlZnJlc2giLCJzdWIiOiJkaWQ6cGxjOno3Mmk3aGR5bm1rNnIyMnoyN2g2dHZ1ciIsImlhdCI6MTcxNzg0NjQwMCwiZXhwIjoxNzE4NDUxMjAwfQ.EXAMPLE_SIGNATURE",
      "handle": "alice.bsky.social",
      "did": "did:plc:z72i7hdynmk6r22z27h6tvur",
      "didDoc": {
        "@context": [
          "https://www.w3.org/ns/did/v1",
          "https://w3id.org/security/multikey/v1",
          "https://w3id.org/security/suites/secp256k1-2019/v1"
        ],
        "id": "did:plc:z72i7hdynmk6r22z27h6tvur",
        "alsoKnownAs": ["at://alice.bsky.social"],
        "verificationMethod": [],
        "service": [
          {
            "id": "#atproto_pds",
            "type": "AtprotoPersonalDataServer",
            "serviceEndpoint": "https://bsky.social"
          }
        ]
      },
      "email": "alice@example.com",
      "emailConfirmed": true,
      "emailAuthFactor": false,
      "active": true
    }
  }
}