WSO2 · JSON Structure

Admin Api Custom Rule Structure

CustomRule schema from WSO2 API Manager

Type: Properties: 0
API ManagementGatewaysOpen-SourceAPI LifecycleGraphQLSOAPREST

Custom Rule is a JSON Structure definition published by WSO2. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wso2/refs/heads/main/json-structure/admin-api-custom-rule-structure.json",
  "name": "Custom Rule",
  "description": "CustomRule schema from WSO2 API Manager",
  "allOf": [
    {
      "$ref": "#/components/schemas/ThrottlePolicy"
    },
    {
      "required": [
        "keyTemplate",
        "siddhiQuery"
      ],
      "type": "object",
      "properties": {
        "siddhiQuery": {
          "type": "string",
          "description": "Siddhi query which represents the custom throttling policy",
          "example": "FROM RequestStream\\nSELECT userId, ( userId == 'admin@carbon.super' ) AS isEligible , str:concat('admin@carbon.super','') as throttleKey\\nINSERT INTO EligibilityStream; \\n\\nFROM EligibilityStream[isEligible==true]#throttler:timeBatch(1 min) \\nSELECT throttleKey, (count(userId) >= 10) as isThrottled, expiryTimeStamp group by throttleKey \\nINSERT ALL EVENTS into ResultStream;\n"
        },
        "keyTemplate": {
          "type": "string",
          "description": "The specific combination of attributes that are checked in the policy.",
          "example": "$userId"
        }
      }
    }
  ]
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/admin-api-custom-rule-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.