com.atproto.server.getSession
Get information about the current auth session. Requires auth.
Details · query
| Kind | query |
|---|---|
| Authority | server.atproto.com |
| Indexed |
Checks
Validunlimited-stringdefs.main.output.schema.properties.emailNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.statusNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Get information about the current auth session. Requires auth.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"active": {
"type": "boolean"
},
"did": {
"format": "did",
"type": "string"
},
"didDoc": {
"type": "unknown"
},
"email": {
"type": "string"
},
"emailAuthFactor": {
"type": "boolean"
},
"emailConfirmed": {
"type": "boolean"
},
"handle": {
"format": "handle",
"type": "string"
},
"status": {
"description": "If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.",
"knownValues": [
"takendown",
"suspended",
"deactivated"
],
"type": "string"
}
},
"required": [
"handle",
"did"
],
"type": "object"
}
},
"type": "query"
}
},
"id": "com.atproto.server.getSession",
"lexicon": 1
}