com.atproto.label.queryLabels

atproto-lexicons.bsky.social

Documentation

Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth.

main query

Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth.

Parameters

cursor string Optional

No description available.

limit integer Optional

No description available.

sources array of string Optional

Optional list of label sources (DIDs) to filter on.

uriPatterns array of string Required

List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI.

Output

Encodingapplication/json
cursor string Optional

No description available.

labels array Required

No description available.

Try It

Direct PDS XRPC methods (com.atproto.*) are disabled in Try It for security reasons.

These methods interact directly with Personal Data Servers and require careful handling. Use a dedicated client or CLI tool instead.
View raw schema
{
  "type": "query",
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "labels"
      ],
      "properties": {
        "cursor": {
          "type": "string"
        },
        "labels": {
          "type": "array",
          "items": {
            "ref": "com.atproto.label.defs#label",
            "type": "ref"
          }
        }
      }
    },
    "encoding": "application/json"
  },
  "parameters": {
    "type": "params",
    "required": [
      "uriPatterns"
    ],
    "properties": {
      "limit": {
        "type": "integer",
        "default": 50,
        "maximum": 250,
        "minimum": 1
      },
      "cursor": {
        "type": "string"
      },
      "sources": {
        "type": "array",
        "items": {
          "type": "string",
          "format": "did"
        },
        "description": "Optional list of label sources (DIDs) to filter on."
      },
      "uriPatterns": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI."
      }
    }
  },
  "description": "Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth."
}

Lexicon Garden

@