Modify headers
A policy that modifies headers for requests.
API GatewayAI GatewayAI ConnectivityAgent GatewayEvent GatewayMCP RegistryService MeshLLMKafkaKonnectOpen-Source
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/EventGatewayModifyHeadersPolicyCreate",
"title": "Modify headers",
"description": "A policy that modifies headers for requests.",
"type": "object",
"properties": {
"type": {
"description": "The type name of the policy.",
"type": "string",
"const": "modify_headers",
"maxLength": 255,
"minLength": 1
},
"name": {
"description": "A unique user-defined name of the policy.",
"type": "string",
"maxLength": 255,
"x-unicode-pattern": "^[\\p{L}\\p{N}][\\p{L}\\p{N} _\\-\\.:/+']*[\\p{L}\\p{N}]$"
},
"description": {
"description": "A human-readable description of the policy.",
"type": "string",
"default": "",
"maxLength": 512
},
"enabled": {
"description": "Whether the policy is enabled.",
"type": "boolean",
"default": true
},
"labels": {
"$ref": "#/components/schemas/Labels"
},
"config": {
"description": "The configuration of the modify headers policy.",
"type": "object",
"properties": {
"actions": {
"description": "Actions are run in sequential order and act on individual headers.",
"type": "array",
"items": {
"$ref": "#/components/schemas/EventGatewayModifyHeaderAction"
},
"minItems": 1
}
}
},
"condition": {
"description": "A string containing the boolean expression that determines whether the policy is applied.\n\nWhen the policy is applied as a child policy of schema_validation, the expression can also reference\n`record.value` fields.\n",
"type": "string",
"example": "record.value.content.foo.bar == \"a-value\"",
"default": "",
"maxLength": 1000,
"x-expression": {
"type": "boolean",
"fields": [
{
"name": "context.auth.principal.name",
"type": "string",
"description": "Name of authenticated principal. Username in case of PLAIN/SCRAM, `sub` claim in case of OAUTHBEARER."
},
{
"name": "context.auth.type",
"type": "string",
"description": "The matched authentication type from a virtual cluster: anonymous, sasl_plain, sasl_scram_sha256, sasl_scram_sha512, sasl_oauth_bearer.\n"
},
{
"name": "context.topic.name",
"type": "string",
"description": "The name of the topic."
},
{
"name": "record.headers",
"type": "object",
"description": "An associative array of header key value pairs."
},
{
"name": "record.value.validated",
"type": "boolean",
"description": "Indicates whether the record value was successfully validated."
},
{
"name": "record.value.content",
"type": "object",
"description": "The content of the record value."
}
]
}
},
"parent_policy_id": {
"description": "The unique identifier of the parent schema validation policy, if any.",
"type": "string",
"format": "uuid"
}
},
"required": [
"type",
"config"
]
}
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.
All 92 tools
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/kong-eventgatewaymodifyheaderspolicycreate"
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 email required.
A second provider on the same verified email joins the account you already have.