Kgateway · Schema

kgateway Backend

Backend defines a routable backend such as an AI provider, AWS Lambda function, or static server for use by Gateways.

Gateways

Properties

Name Type Description
apiVersion string API version for the Backend resource.
kind string Resource kind.
metadata object Standard Kubernetes object metadata.
spec object BackendSpec defines the desired state of a Backend.
View JSON Schema on GitHub

JSON Schema

backend.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/api-evangelist/kgateway/blob/main/json-schema/backend.json",
  "title": "kgateway Backend",
  "description": "Backend defines a routable backend such as an AI provider, AWS Lambda function, or static server for use by Gateways.",
  "type": "object",
  "properties": {
    "apiVersion": {
      "type": "string",
      "const": "gateway.kgateway.dev/v1alpha1",
      "description": "API version for the Backend resource."
    },
    "kind": {
      "type": "string",
      "const": "Backend",
      "description": "Resource kind."
    },
    "metadata": {
      "type": "object",
      "description": "Standard Kubernetes object metadata.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the Backend resource."
        },
        "namespace": {
          "type": "string",
          "description": "Namespace of the Backend resource."
        },
        "labels": {
          "type": "object",
          "additionalProperties": { "type": "string" }
        },
        "annotations": {
          "type": "object",
          "additionalProperties": { "type": "string" }
        }
      },
      "required": ["name"]
    },
    "spec": {
      "type": "object",
      "description": "BackendSpec defines the desired state of a Backend.",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of the backend.",
          "enum": ["Static", "AWS", "AI"]
        },
        "static": {
          "type": "object",
          "description": "Static backend configuration.",
          "properties": {
            "hosts": {
              "type": "array",
              "description": "List of static hosts.",
              "items": {
                "type": "object",
                "properties": {
                  "host": {
                    "type": "string",
                    "description": "Hostname or IP address."
                  },
                  "port": {
                    "type": "integer",
                    "description": "Port number."
                  },
                  "tls": {
                    "type": "object",
                    "description": "TLS configuration for the host.",
                    "properties": {
                      "sni": { "type": "string" }
                    }
                  }
                }
              }
            }
          }
        },
        "aws": {
          "type": "object",
          "description": "AWS Lambda backend configuration.",
          "properties": {
            "region": {
              "type": "string",
              "description": "AWS region."
            },
            "lambdaFunctionName": {
              "type": "string",
              "description": "Name of the AWS Lambda function."
            },
            "accountId": {
              "type": "string",
              "description": "AWS account ID."
            },
            "roleArn": {
              "type": "string",
              "description": "ARN of the IAM role to assume."
            }
          }
        },
        "ai": {
          "type": "object",
          "description": "AI provider backend configuration.",
          "properties": {
            "provider": {
              "type": "object",
              "description": "Configuration for the LLM provider.",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": ["openai", "azure", "gemini", "mistral"]
                },
                "openai": {
                  "type": "object",
                  "properties": {
                    "authToken": { "$ref": "#/$defs/AuthToken" }
                  }
                },
                "azure": {
                  "type": "object",
                  "properties": {
                    "endpoint": { "type": "string" },
                    "deploymentName": { "type": "string" },
                    "apiVersion": { "type": "string" },
                    "authToken": { "$ref": "#/$defs/AuthToken" }
                  }
                },
                "gemini": {
                  "type": "object",
                  "properties": {
                    "authToken": { "$ref": "#/$defs/AuthToken" }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "$defs": {
    "AuthToken": {
      "type": "object",
      "properties": {
        "secretRef": {
          "type": "object",
          "properties": {
            "name": { "type": "string" },
            "namespace": { "type": "string" }
          }
        }
      }
    }
  }
}

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.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/backend"
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.