{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/serp-agent-com/json-schema/serp-agent-com-plans-document-schema.json",
  "title": "PlansDocument",
  "description": "Machine-readable pricing catalog: subscription plans (per project, per month), the agent purchase channel, an a-la-carte unit catalog, sandbox trial terms, and links. See GET /v1/plans for the live document.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/serp-agent-com-openapi.json#/components/schemas/PlansDocument",
  "type": "object",
  "required": [
    "currency",
    "updated_at",
    "plans",
    "agent_channel",
    "a_la_carte",
    "sandbox",
    "links"
  ],
  "properties": {
    "currency": {
      "type": "string",
      "const": "USD"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Catalog version stamp — bumped when prices/limits change."
    },
    "merchant_of_record": {
      "type": "string"
    },
    "plans": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "basic",
              "pro"
            ]
          },
          "name": {
            "type": "string"
          },
          "audience": {
            "type": "string"
          },
          "monthly_price": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "period": {
            "type": "string"
          },
          "featured": {
            "type": "boolean"
          },
          "features": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "checkout_url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "agent_channel": {
      "type": "object",
      "description": "Per-project programmatic purchase of the same plans via POST /v1/subscriptions; status at GET /v1/subscription."
    },
    "a_la_carte": {
      "type": "object",
      "description": "Individual SEO work units, paid with prepaid credits (packs at POST /v1/credits/purchases, balance at GET /v1/credits)."
    },
    "sandbox": {
      "type": "object",
      "description": "Free trial terms."
    },
    "links": {
      "type": "object"
    }
  }
}