JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/rulesets_RedirectRule",
"title": "rulesets_RedirectRule",
"allOf": [
{
"$ref": "#/components/schemas/rulesets_Rule"
},
{
"properties": {
"action": {
"enum": [
"redirect"
]
},
"action_parameters": {
"properties": {
"from_list": {
"description": "Serve a redirect based on a bulk list lookup.",
"properties": {
"key": {
"description": "Expression that evaluates to the list lookup key.",
"example": "http.request.full_uri",
"minLength": 1,
"title": "Key",
"type": "string"
},
"name": {
"description": "The name of the list to match against.",
"example": "list1",
"maxLength": 50,
"pattern": "^[a-zA-Z0-9_]+$",
"title": "Name",
"type": "string"
}
},
"title": "Bulk Redirect",
"type": "object"
},
"from_value": {
"description": "Serve a redirect based on the request properties.",
"properties": {
"preserve_query_string": {
"description": "Keep the query string of the original request.",
"title": "Preserve query string",
"type": "boolean"
},
"status_code": {
"description": "The status code to be used for the redirect.",
"enum": [
301,
302,
303,
307,
308
],
"title": "Status Code",
"type": "number"
},
"target_url": {
"description": "The URL to redirect the request to.",
"example": {
"expression": "concat(\"https://m.example.com\", http.request.uri.path)"
},
"oneOf": [
{
"properties": {
"value": {
"description": "The URL to redirect the request to.",
"minLength": 1,
"type": "string"
}
},
"title": "Static URL redirect",
"type": "object"
},
{
"properties": {
"expression": {
"description": "An expression to evaluate to get the URL to redirect the request to.",
"minLength": 1,
"type": "string"
}
},
"title": "Dynamic URL redirect",
"type": "object"
}
]
}
},
"title": "Single redirect",
"type": "object"
}
}
},
"description": {
"example": "Redirect when IP address is not 1.1.1.1"
}
},
"title": "Redirect rule"
}
]
}
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/apis-io-engineering-platform-rulesets-redirectrule"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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.