Properties
| Name | Type | Description |
|---|---|---|
| rules | array | One or more rules, all with the same `ruleType`. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/gajo-io/json-schema/gajo-io-create-routing-rules-request-schema.json",
"title": "CreateRoutingRulesRequest",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/gajo-io-routing-rules-api-openapi.yml#/components/schemas/CreateRoutingRulesRequest",
"type": "object",
"required": [
"rules"
],
"properties": {
"rules": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/RoutingRuleInput"
},
"description": "One or more rules, all with the same `ruleType`."
}
},
"$defs": {
"DeviceClass": {
"type": "string",
"enum": [
"Mobile",
"Tablet",
"Desktop"
],
"description": "Device class for per-URL `Device` rules."
},
"RoutingRuleInput": {
"type": "object",
"required": [
"ruleType",
"targetUrl"
],
"properties": {
"ruleType": {
"$ref": "#/$defs/RoutingType"
},
"deviceType": {
"$ref": "#/$defs/DeviceClass",
"description": "Required for `Device` rules. Each device type may appear once."
},
"targetUrl": {
"type": "string",
"maxLength": 2048,
"description": "Destination URL (standard web schemes; validated like `POST /shorten`)."
},
"variantName": {
"type": "string",
"description": "Required for `AbTest` rules."
},
"splitPercentage": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"description": "Required for `AbTest` rules; all percentages in the request must sum to 100."
}
}
},
"RoutingType": {
"type": "string",
"enum": [
"Device",
"AbTest"
],
"description": "`Device` routes by device class; `AbTest` splits traffic by percentage."
}
}
}
Work with this as data
Every JSON Schema 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 schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema 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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/gajo-io-create-routing-rules-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.