com.atproto.server.getSession
GET/xrpc/com.atproto.server.getSession
This endpoint is part of the atproto PDS server and account management APIs. Requests often require authentication and are made directly to the user's own PDS instance.
To learn more about calling atproto API endpoints like this one, see the API Hosts and Auth guide.
Get information about the current auth session. Requires auth.
Request
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
handle handlerequired
did didrequired
email string
emailConfirmed boolean
emailAuthFactor boolean
didDoc
active boolean
status string
Possible values: [takendown
, suspended
, deactivated
]
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.
{
"handle": "string",
"did": "string",
"email": "string",
"emailConfirmed": true,
"emailAuthFactor": true,
"didDoc": {},
"active": true,
"status": "takendown"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
Possible values: [InvalidRequest
, ExpiredToken
, InvalidToken
]
message stringrequired
{
"error": "InvalidRequest",
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error required
message stringrequired
{
"message": "string"
}
Loading...