pub.chive.actor.getMyRoles

chive.pub

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
{
  "type": "query",
  "errors": [
    {
      "name": "AuthenticationRequired"
    }
  ],
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "roles",
        "isAdmin",
        "isAlphaTester",
        "isPremium"
      ],
      "properties": {
        "roles": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of role identifiers assigned to the user"
        },
        "isAdmin": {
          "type": "boolean",
          "description": "Whether the user has admin privileges"
        },
        "isPremium": {
          "type": "boolean",
          "description": "Whether the user has premium access"
        },
        "isAlphaTester": {
          "type": "boolean",
          "description": "Whether the user has alpha tester access"
        }
      }
    },
    "encoding": "application/json"
  },
  "parameters": {
    "type": "params",
    "properties": {}
  },
  "description": "Get the authenticated user's roles and access flags"
}

Lexicon Garden

@