com.atproto.session Lexicon#

Definitions related to session-management in ATP.


com.atproto.session.create#

{
  "lexicon": 1,
  "id": "com.atproto.session.create",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Create an authentication session.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "handle",
            "password"
          ],
          "properties": {
            "handle": {
              "type": "string"
            },
            "password": {
              "type": "string"
            }
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "accessJwt",
            "refreshJwt",
            "handle",
            "did"
          ],
          "properties": {
            "accessJwt": {
              "type": "string"
            },
            "refreshJwt": {
              "type": "string"
            },
            "handle": {
              "type": "string"
            },
            "did": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}

com.atproto.session.delete#

{
  "lexicon": 1,
  "id": "com.atproto.session.delete",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Delete the current session."
    }
  }
}

com.atproto.session.get#

{
  "lexicon": 1,
  "id": "com.atproto.session.get",
  "defs": {
    "main": {
      "type": "query",
      "description": "Get information about the current session.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "handle",
            "did"
          ],
          "properties": {
            "handle": {
              "type": "string"
            },
            "did": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}

com.atproto.session.refresh#

{
  "lexicon": 1,
  "id": "com.atproto.session.refresh",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Refresh an authentication session.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "accessJwt",
            "refreshJwt",
            "handle",
            "did"
          ],
          "properties": {
            "accessJwt": {
              "type": "string"
            },
            "refreshJwt": {
              "type": "string"
            },
            "handle": {
              "type": "string"
            },
            "did": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}

See what's next.Join the private beta.

The AT Protocol will launch soon.
Join the waitlist to try the beta before it's publicly available.

Join the waitlist