Lunar · Schema

Lunar Gateway Proxy Request Headers

Schema for HTTP headers used when routing outbound API requests through the Lunar API Consumption Gateway on port 8000. The consuming application sets these headers to control routing, authentication forwarding, and consumer tagging.

API ManagementAPI GatewayAI GatewayMCP GatewayRate LimitingQuota EnforcementAPI MonetizationTraffic ManagementAPI GovernanceCost ControlsObservability

Properties

Name Type Description
x-lunar-scheme string Overrides the target request scheme. Default is https.
x-lunar-host string Target host for the proxied request (e.g., api.stripe.com). Required for proper routing.
x-lunar-consumer-tag string Consumer identifier for traffic attribution, quota enforcement, and per-consumer policy application.
x-lunar-retry-after string Number of seconds to wait before retrying after a rate-limit response. Set by the gateway on 429 responses.
View JSON Schema on GitHub

JSON Schema

lunar-gateway-proxy-request.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lunar/main/json-schema/lunar-gateway-proxy-request.json",
  "title": "Lunar Gateway Proxy Request Headers",
  "description": "Schema for HTTP headers used when routing outbound API requests through the Lunar API Consumption Gateway on port 8000. The consuming application sets these headers to control routing, authentication forwarding, and consumer tagging.",
  "type": "object",
  "properties": {
    "x-lunar-scheme": {
      "type": "string",
      "enum": ["http", "https"],
      "description": "Overrides the target request scheme. Default is https."
    },
    "x-lunar-host": {
      "type": "string",
      "description": "Target host for the proxied request (e.g., api.stripe.com). Required for proper routing."
    },
    "x-lunar-consumer-tag": {
      "type": "string",
      "description": "Consumer identifier for traffic attribution, quota enforcement, and per-consumer policy application."
    },
    "x-lunar-retry-after": {
      "type": "string",
      "description": "Number of seconds to wait before retrying after a rate-limit response. Set by the gateway on 429 responses."
    }
  },
  "required": ["x-lunar-host"]
}

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/lunar-gateway-proxy-request"
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.