pub.chive.actor.getMyRoles

chive.pub View official

Documentation

Get the authenticated user's roles and access flags

main query

Get the authenticated user's roles and access flags

Output

Encodingapplication/json
isAdmin boolean Required

Whether the user has admin privileges

isAlphaTester boolean Required

Whether the user has alpha tester access

isPremium boolean Required

Whether the user has premium access

roles array Required

List of role identifiers assigned to the user

Errors

AuthenticationRequired
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://api.bsky.social)
View raw schema
{
  "description": "Get the authenticated user's roles and access flags",
  "errors": [
    {
      "name": "AuthenticationRequired"
    }
  ],
  "output": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "isAdmin": {
          "description": "Whether the user has admin privileges",
          "type": "boolean"
        },
        "isAlphaTester": {
          "description": "Whether the user has alpha tester access",
          "type": "boolean"
        },
        "isPremium": {
          "description": "Whether the user has premium access",
          "type": "boolean"
        },
        "roles": {
          "description": "List of role identifiers assigned to the user",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "roles",
        "isAdmin",
        "isAlphaTester",
        "isPremium"
      ],
      "type": "object"
    }
  },
  "parameters": {
    "properties": {},
    "type": "params"
  },
  "type": "query"
}

Lexicon Garden

@