Lunar · Schema

Lunar.dev Flow

Represents a flow configuration for the Lunar Gateway. Flows are YAML-based definitions that describe how API requests and responses are processed in real time, including traffic management rules such as rate limiting, caching, retry mechanisms, quota enforcement, and request prioritization.

API ManagementAPI GatewayAI GatewayMCP GatewayRate LimitingQuota EnforcementAPI MonetizationTraffic ManagementAPI GovernanceCost ControlsObservability

Properties

Name Type Description
name string Human-readable name for the flow.
description string Description of the flow and its purpose.
enabled boolean Whether the flow is currently active.
filter object Filter criteria that determine which requests this flow applies to.
processors array Ordered list of processors to apply to matched requests.
View JSON Schema on GitHub

JSON Schema

flow.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/api-evangelist/lunar-dev/blob/main/json-schema/flow.json",
  "title": "Lunar.dev Flow",
  "description": "Represents a flow configuration for the Lunar Gateway. Flows are YAML-based definitions that describe how API requests and responses are processed in real time, including traffic management rules such as rate limiting, caching, retry mechanisms, quota enforcement, and request prioritization.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Human-readable name for the flow."
    },
    "description": {
      "type": "string",
      "description": "Description of the flow and its purpose."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the flow is currently active.",
      "default": true
    },
    "filter": {
      "type": "object",
      "description": "Filter criteria that determine which requests this flow applies to.",
      "properties": {
        "url": {
          "type": "string",
          "description": "URL pattern to match against incoming requests."
        },
        "method": {
          "type": "string",
          "description": "HTTP method to match."
        },
        "headers": {
          "type": "object",
          "description": "Header key-value pairs to match.",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "processors": {
      "type": "array",
      "description": "Ordered list of processors to apply to matched requests.",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The processor type.",
            "examples": [
              "rate_limit",
              "cache",
              "retry",
              "queue",
              "quota"
            ]
          },
          "config": {
            "type": "object",
            "description": "Processor-specific configuration parameters."
          }
        }
      }
    }
  }
}

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/flow"
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.