Return the authenticated viewer's identity along with any opaque flags clients may use to gate UI.
Output
Encoding
application/jsonavatarCid
string
Optional
No description available.
did
stringdid
Required
A decentralized identifier (DID).
displayName
string
Optional
No description available.
envAdmin
boolean
Required
Implementation-defined flag. Clients should treat as opaque.
handle
stringhandle
Optional
An AT Protocol handle (e.g., alice.bsky.social).
roles
array
Required
Opaque flags assigned to the viewer. Values are implementation-defined; treat unknown entries as informational.
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"did",
"roles",
"envAdmin"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"roles": {
"type": "array",
"items": {
"type": "string"
},
"description": "Opaque flags assigned to the viewer. Values are implementation-defined; treat unknown entries as informational."
},
"handle": {
"type": "string",
"format": "handle"
},
"envAdmin": {
"type": "boolean",
"description": "Implementation-defined flag. Clients should treat as opaque."
},
"avatarCid": {
"type": "string"
},
"displayName": {
"type": "string"
}
}
},
"encoding": "application/json"
},
"description": "Return the authenticated viewer's identity along with any opaque flags clients may use to gate UI."
}