tools.ozone.safelink.queryRules

ozone-lexicons.bsky.social

Documentation

Query URL safety rules

main procedure

Query URL safety rules

Input

Encodingapplication/json
actions array Optional

Filter by action types

createdBy stringdid Optional

Filter by rule creator

cursor string Optional

Cursor for pagination

limit integer Optional

Maximum number of results to return

minimum: 1maximum: 100
patternType string Optional

Filter by pattern type

reason string Optional

Filter by reason type

sortDirection string Optional

Sort direction

urls array Optional

Filter by specific URLs or domains

Output

Encodingapplication/json
cursor string Optional

Next cursor for pagination. Only present if there are more results.

rules array Required

No description available.

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://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "description": "Query URL safety rules",
  "input": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "actions": {
          "description": "Filter by action types",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "createdBy": {
          "description": "Filter by rule creator",
          "format": "did",
          "type": "string"
        },
        "cursor": {
          "description": "Cursor for pagination",
          "type": "string"
        },
        "limit": {
          "default": 50,
          "description": "Maximum number of results to return",
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "patternType": {
          "description": "Filter by pattern type",
          "type": "string"
        },
        "reason": {
          "description": "Filter by reason type",
          "type": "string"
        },
        "sortDirection": {
          "default": "desc",
          "description": "Sort direction",
          "knownValues": [
            "asc",
            "desc"
          ],
          "type": "string"
        },
        "urls": {
          "description": "Filter by specific URLs or domains",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "output": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "cursor": {
          "description": "Next cursor for pagination. Only present if there are more results.",
          "type": "string"
        },
        "rules": {
          "items": {
            "ref": "tools.ozone.safelink.defs#urlRule",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "rules"
      ],
      "type": "object"
    }
  },
  "type": "procedure"
}

Lexicon Garden

@