{
  "openapi": "3.0.3",
  "info": {
    "title": "endoflife.ai API",
    "version": "1.4.0",
    "description": "End-of-life dates and EOL Risk Scores for 700+ software products. Every data route needs an X-API-Key header and answers 401 without one (keyless access ended 2026-11-16T00:00:00Z); the index, this spec, badges, free-key signup, the alert routes and the hosted MCP server stay keyless. Get a free key at https://endoflife.ai/api#free-key. Free key (POST /v1/keys/free, no expiry): 150 req/day, 5 per call. Higher volume is on a paid key, issued at checkout from https://endoflife.ai/api#get-key: Starter $89/mo: 10,000 req/day, 25 per call. Pro $299/mo: 100,000 req/day fair use, 50 per call. Enterprise from $750/mo by written quote.",
    "contact": {
      "email": "partners@endoflife.ai",
      "url": "https://endoflife.ai/api"
    }
  },
  "servers": [
    {
      "url": "https://api.endoflife.ai"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "The same API key sent as Authorization: Bearer <key>, for clients that cannot set X-API-Key (Prometheus before 3.0)."
      }
    },
    "headers": {
      "X-RateLimit-Limit": {
        "schema": {
          "type": "string"
        },
        "description": "Requests allowed per UTC day for the caller's tier (per key; the routes that need no key, per address), or the word unlimited on a Pro key."
      },
      "X-RateLimit-Remaining": {
        "schema": {
          "type": "integer"
        },
        "description": "Requests left today after this one. Absent on a Pro key."
      },
      "X-RateLimit-Reset": {
        "schema": {
          "type": "integer"
        },
        "description": "Unix time (seconds) when the daily counter resets: the next UTC midnight. Absent on a Pro key."
      },
      "X-EOL-Key-Status": {
        "schema": {
          "type": "string",
          "enum": [
            "unknown",
            "inactive"
          ]
        },
        "description": "Present only when an X-API-Key was sent and not honoured: unknown (no such key), inactive (subscription cancelled or refunded). The request is refused with 401. Free keys do not expire."
      }
    },
    "schemas": {
      "Score": {
        "type": "object",
        "description": "One version's lifecycle facts and EOL Risk Score. The same object is returned by /v1/score, inside /v1/product versions[], /v1/batch results[] and /v1/sbom results[].",
        "properties": {
          "product": {
            "type": "string",
            "example": "nodejs"
          },
          "version": {
            "type": "string",
            "example": "18",
            "description": "The release cycle answered. When the request named a patch or build, requested_version and version_matched_by are present too."
          },
          "alias_of": {
            "type": "string",
            "description": "Only when the slug sent is an alias of a tracked product (fortigate, weblogic, ios-xe): the slug as sent; product is the tracked slug it resolved to."
          },
          "requested_version": {
            "type": "string",
            "description": "Only when the version was resolved to its release line: the version as sent."
          },
          "version_matched_by": {
            "type": "string",
            "enum": [
              "release-line",
              "model-name"
            ],
            "description": "Only when the version was not matched exactly: release-line (a patch or build resolved to its release line) or model-name (a device model sent without its family prefix, e.g. 60E for FortiGate-60E)."
          },
          "latest_release": {
            "type": "string",
            "nullable": true
          },
          "release_date": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "eol_date": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "null when the vendor has published no date, or has only said the line is already end of life (see eol_boolean)."
          },
          "eol_boolean": {
            "type": "boolean",
            "nullable": true,
            "description": "true = end of life with no exact date published; false = not end of life, no date published; null = a date is given in eol_date."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "warn",
              "eol",
              "unknown"
            ],
            "description": "warn = within 180 days of end of life, still supported; unknown = the published date could not be read"
          },
          "is_supported": {
            "type": "boolean",
            "description": "true when the vendor still ships fixes today: status active or warn. false for eol and unknown."
          },
          "days_until_eol": {
            "type": "integer",
            "nullable": true,
            "description": "Counted to eol_date. When eol_date_precision is month or quarter, that is the period's last day: show the month, not the count."
          },
          "days_past_eol": {
            "type": "integer",
            "nullable": true
          },
          "eol_date_precision": {
            "type": "string",
            "nullable": true,
            "enum": [
              "day",
              "month",
              "quarter"
            ],
            "description": "How precisely the vendor publishes eol_date: day = the vendor names the day; month or quarter = the vendor names only the month (quarter), so eol_date is that period's LAST day, kept for sorting and comparison; display the period (\"October 2026\"), not the day. null when eol_date is null."
          },
          "support_date": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "End of the vendor's active (full or standard) support phase for this line, where one is published. The risk score's eol_recency factor reads it. null where none is recorded."
          },
          "support_date_precision": {
            "type": "string",
            "nullable": true,
            "enum": [
              "day",
              "month",
              "quarter"
            ],
            "description": "How precisely the vendor publishes support_date: day = the vendor names the day; month or quarter = the vendor names only the month (quarter), so support_date is that period's LAST day, kept for sorting and comparison; display the period (\"October 2026\"), not the day. null when support_date is null."
          },
          "extended_support_date_precision": {
            "type": "string",
            "nullable": true,
            "enum": [
              "day",
              "month",
              "quarter"
            ],
            "description": "How precisely the vendor publishes extended_support_date: day = the vendor names the day; month or quarter = the vendor names only the month (quarter), so extended_support_date is that period's LAST day, kept for sorting and comparison; display the period (\"October 2026\"), not the day. null when extended_support_date is null."
          },
          "date_precision_note": {
            "type": "string",
            "description": "Present only when a date above is month or quarter precision: which date, the period it stands for, and that it is stored as the period's last day."
          },
          "score": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "description": "EOL Risk Score (higher = riskier)"
          },
          "grade": {
            "type": "string",
            "example": "F"
          },
          "grade_label": {
            "type": "string",
            "example": "Critical risk"
          },
          "band": {
            "type": "string",
            "example": "Critical"
          },
          "factors": {
            "type": "object",
            "properties": {
              "eol_recency": {
                "type": "integer"
              },
              "attack_surface": {
                "type": "integer"
              },
              "cisa_kev_exposure": {
                "type": "integer"
              },
              "extended_support": {
                "type": "integer"
              }
            },
            "description": "The four components of the score; methodology at methodology_url."
          },
          "cpe": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "example": [
              "cpe:2.3:a:nodejs:node.js"
            ],
            "description": "Verified CPE 2.3 identifier(s) for joining this product to scanner and CVE data. null where no identifier has been verified — we publish none rather than a guess. For a hardware product whose versions are models (cpe_scope model), only the identifiers that name this model."
          },
          "cpe_scope": {
            "type": "string",
            "enum": [
              "model"
            ],
            "description": "Present for hardware products whose versions are models: cpe lists only this model's identifiers, never the other models on the vendor page."
          },
          "cpe_note": {
            "type": "string",
            "description": "Present when cpe_scope is model and no NIST CPE names this model, so cpe is null."
          },
          "purl": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "example": [
              "pkg:generic/node",
              "pkg:docker/library/node",
              "pkg:rpm/redhat/nodejs"
            ],
            "description": "Package URL(s) that resolve an SBOM component to this product (endoflife.ai/purl-map.json). null where none is known."
          },
          "extended_support_available": {
            "type": "boolean"
          },
          "extended_support_vendor": {
            "type": "object",
            "nullable": true,
            "description": "A featured extended-support vendor for this product where one is listed; null otherwise."
          },
          "score_card_url": {
            "type": "string",
            "format": "uri",
            "description": "The score card page on endoflife.ai. The cycle is written as the site writes it: every character outside letters, digits, dot, dash and underscore becomes a dash."
          },
          "product_url": {
            "type": "string",
            "format": "uri"
          },
          "methodology_url": {
            "type": "string",
            "format": "uri"
          },
          "data_source": {
            "type": "string",
            "format": "uri",
            "description": "Where the served eol_date was read from: the vendor page for a vendor-sourced date, https://endoflife.date for an upstream date, https://endoflife.ai/how-it-works for our own catalog."
          },
          "generated_at": {
            "type": "string",
            "format": "date-time"
          },
          "extended_support_date": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "End of the vendor's own extended or paid support phase for this line where one is published (Microsoft ESU, Oracle Extended Support, Red Hat ELS, Ubuntu ESM). A line past eol_date may still be covered until this date under that program, unless extended_support_ships_fixes is false. null where none is recorded. The eol_date_source and eol_date_confidence fields describe eol_date only; this date comes from the same lifecycle record but is not covered by them, so confirm it with the vendor before relying on it for a contract."
          },
          "extended_support_ships_fixes": {
            "type": "boolean",
            "nullable": true,
            "description": "false where the vendor ships no fixes in the phase that ends on extended_support_date (support services or advice only: Cisco Last Date of Support, Hazelcast Extended Support, Ivanti Customer care, Zyxel End of Life), so a line past eol_date receives no patches from the vendor even though that phase is still open. null where no such statement is recorded."
          },
          "eol_date_source": {
            "type": "string",
            "nullable": true,
            "enum": [
              "vendor-override",
              "vendor-fetched",
              "vendor-verified",
              "custom",
              "upstream",
              "discrepancy"
            ],
            "description": "Where eol_date comes from: vendor-override (set from the vendor's own publication), vendor-fetched (our adapter read the vendor's lifecycle page and it agrees), vendor-verified (a human cross-check covers this version), custom (our own catalog), upstream (endoflife.date only), discrepancy (the vendor page disagrees with the served value; under review). Full report: https://endoflife.ai/verification.json"
          },
          "eol_date_source_url": {
            "type": "string",
            "nullable": true,
            "description": "The vendor page or record the label rests on."
          },
          "eol_date_verified_at": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "When the label was last established: the vendor feed's read date, the human check date, or the day the correction was applied."
          },
          "eol_date_status": {
            "type": "string",
            "nullable": true,
            "enum": [
              "ok",
              "fallback",
              "mismatch",
              "human",
              "upstream",
              "custom"
            ],
            "description": "ok = vendor feed read within 14 days and agreeing; fallback = feed older than 14 days (last good value); mismatch = the vendor feed disagrees with the served value; human = a recorded correction or human verification; upstream = endoflife.date only; custom = our own catalog."
          },
          "eol_date_agreement": {
            "type": "integer",
            "nullable": true,
            "description": "How many independent source classes agree with eol_date: the vendor's own feed, a human decision (correction or verification record), the upstream dataset."
          },
          "eol_date_confidence": {
            "type": "string",
            "nullable": true,
            "enum": [
              "high",
              "medium",
              "low"
            ],
            "description": "high = two or more sources agree; medium = one source; low = the vendor feed disagrees with the served value, or a stale feed is the only source."
          },
          "keyless_access_notice": {
            "type": "object",
            "description": "Historical. Sent on answers to keyless calls before 2026-11-16T00:00:00Z: message, keyless_access_ends (ISO date-time), get_free_key (URL). Such calls now get 401 and the field is no longer sent.",
            "properties": {
              "message": {
                "type": "string"
              },
              "keyless_access_ends": {
                "type": "string",
                "format": "date-time"
              },
              "get_free_key": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "Status": {
        "type": "object",
        "description": "Answer of /v1/status/{slug}/{version}: the lifecycle verdict without the score.",
        "properties": {
          "alias_of": {
            "type": "string",
            "description": "Only when the slug sent is an alias of a tracked product: the slug as sent; product is the tracked slug it resolved to."
          },
          "requested_version": {
            "type": "string",
            "description": "Only when the version was resolved to its release line."
          },
          "version_matched_by": {
            "type": "string",
            "enum": [
              "release-line",
              "model-name"
            ],
            "description": "Only when the version was not matched exactly: release-line or model-name (a device model sent without its family prefix)."
          },
          "product": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "warn",
              "eol",
              "unknown"
            ],
            "description": "warn = within 180 days of end of life, still supported"
          },
          "is_eol": {
            "type": "boolean"
          },
          "is_supported": {
            "type": "boolean",
            "description": "true for status active or warn (fixes still ship today); false for eol and unknown. Until API 1.1.0 this was false in the warn window."
          },
          "eol_approaching": {
            "type": "boolean",
            "description": "status is warn"
          },
          "eol_date": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "days_until_eol": {
            "type": "integer",
            "nullable": true
          },
          "days_past_eol": {
            "type": "integer",
            "nullable": true
          },
          "eol_date_precision": {
            "type": "string",
            "nullable": true,
            "enum": [
              "day",
              "month",
              "quarter"
            ],
            "description": "How precisely the vendor publishes eol_date: day = the vendor names the day; month or quarter = the vendor names only the month (quarter), so eol_date is that period's LAST day, kept for sorting and comparison; display the period (\"October 2026\"), not the day. null when eol_date is null."
          },
          "date_precision_note": {
            "type": "string",
            "description": "Present only when eol_date is month or quarter precision."
          },
          "latest_release": {
            "type": "string",
            "nullable": true
          },
          "cpe": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "For a hardware product whose versions are models (cpe_scope model), only the identifiers that name this model."
          },
          "cpe_scope": {
            "type": "string",
            "enum": [
              "model"
            ],
            "description": "Present for hardware products whose versions are models."
          },
          "cpe_note": {
            "type": "string",
            "description": "Present when cpe_scope is model and no NIST CPE names this model, so cpe is null."
          },
          "purl": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "eol_date_source": {
            "type": "string",
            "nullable": true
          },
          "eol_date_source_url": {
            "type": "string",
            "nullable": true
          },
          "eol_date_verified_at": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "eol_date_status": {
            "type": "string",
            "nullable": true
          },
          "eol_date_agreement": {
            "type": "integer",
            "nullable": true
          },
          "eol_date_confidence": {
            "type": "string",
            "nullable": true
          },
          "score_url": {
            "type": "string",
            "format": "uri",
            "description": "The score card page, cycle written as the site writes it (see Score.score_card_url)."
          },
          "keyless_access_notice": {
            "type": "object",
            "description": "Historical. Sent on answers to keyless calls before 2026-11-16T00:00:00Z: message, keyless_access_ends (ISO date-time), get_free_key (URL). Such calls now get 401 and the field is no longer sent.",
            "properties": {
              "message": {
                "type": "string"
              },
              "keyless_access_ends": {
                "type": "string",
                "format": "date-time"
              },
              "get_free_key": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "BatchItem": {
        "type": "object",
        "description": "One of: {slug, version?} or {purl, version?}. A purl (pkg:npm/webpack@5.110.3) resolves exactly via purl-map.json and supplies the version unless one is given.",
        "properties": {
          "slug": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "purl": {
            "type": "string"
          }
        }
      },
      "BatchResponse": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "results": {
            "type": "array",
            "items": {
              "description": "A Score object, or {slug, version?, error, ...} for an item that did not resolve (error names the reason; candidates lists the sibling cycles when a line is split).",
              "oneOf": [
                {
                  "$ref": "#/components/schemas/Score"
                },
                {
                  "$ref": "#/components/schemas/Error"
                }
              ]
            }
          },
          "tier": {
            "type": "string"
          },
          "kev_catalog": {
            "type": "object",
            "description": "The CISA KEV catalog this deployment scores against: generated, named, ecosystem, fingerprint."
          },
          "keyless_access_notice": {
            "type": "object",
            "description": "Historical. Sent on answers to keyless calls before 2026-11-16T00:00:00Z: message, keyless_access_ends (ISO date-time), get_free_key (URL). Such calls now get 401 and the field is no longer sent.",
            "properties": {
              "message": {
                "type": "string"
              },
              "keyless_access_ends": {
                "type": "string",
                "format": "date-time"
              },
              "get_free_key": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "docs": {
            "type": "string"
          }
        }
      },
      "Error": {
        "type": "object",
        "description": "Every error carries error and docs. Some add detail: reason, candidates (sibling cycles of a split line), cycle and last_published (a version above an ended line's last patch), did_you_mean (closest tracked slugs), not_tracked, see_products, tracked_products, upgrade, get_free_key, key_status, limit_bytes.",
        "properties": {
          "error": {
            "type": "string"
          },
          "docs": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    }
  },
  "security": [
    {},
    {
      "ApiKeyAuth": []
    },
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/v1": {
      "get": {
        "summary": "API index: endpoints, tiers, and the caller's own tier and daily limit",
        "responses": {
          "200": {
            "description": "name, version, endpoints, tiers, docs, methodology, tier, rate_limit",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              }
            }
          },
          "429": {
            "description": "Daily quota exhausted for this tier (per key; the routes that need no key, per address). Retry-After says when the counter resets (next UTC midnight).",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the daily counter resets"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "summary": "This document",
        "responses": {
          "200": {
            "description": "OpenAPI 3.0.3 JSON; info.version equals the X-API-Version header"
          }
        }
      }
    },
    "/v1/products": {
      "get": {
        "summary": "List all tracked product slugs",
        "responses": {
          "200": {
            "description": "{count, products: [slug], docs}",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              }
            }
          },
          "401": {
            "description": "No valid X-API-Key (keyless access ended 2026-11-16 at 00:00 UTC). The body says how to get a free key (https://endoflife.ai/api#free-key); X-EOL-Key-Status names why a sent key was not honoured.",
            "headers": {
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Daily quota exhausted for this tier (per key; the routes that need no key, per address). Retry-After says when the counter resets (next UTC midnight).",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the daily counter resets"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "The upstream product list is unavailable right now",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/product/{slug}": {
      "get": {
        "summary": "All release cycles for a product",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "nodejs"
          }
        ],
        "responses": {
          "200": {
            "description": "{product, version_count, versions: [Score], product_url, docs}",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              }
            }
          },
          "401": {
            "description": "No valid X-API-Key (keyless access ended 2026-11-16 at 00:00 UTC). The body says how to get a free key (https://endoflife.ai/api#free-key); X-EOL-Key-Status names why a sent key was not honoured.",
            "headers": {
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown product; did_you_mean lists the closest tracked slugs when there are any",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Daily quota exhausted for this tier (per key; the routes that need no key, per address). Retry-After says when the counter resets (next UTC midnight).",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the daily counter resets"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/score/{slug}": {
      "get": {
        "summary": "Highest-risk cycle score for a product",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "EOL Risk Score",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Score"
                }
              }
            }
          },
          "401": {
            "description": "No valid X-API-Key (keyless access ended 2026-11-16 at 00:00 UTC). The body says how to get a free key (https://endoflife.ai/api#free-key); X-EOL-Key-Status names why a sent key was not honoured.",
            "headers": {
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown product",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Daily quota exhausted for this tier (per key; the routes that need no key, per address). Retry-After says when the counter resets (next UTC midnight).",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the daily counter resets"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/score/{slug}/{version}": {
      "get": {
        "summary": "EOL Risk Score for a specific version",
        "description": "A patch or build version (18.19.0, 8.6) resolves to its release line; the answer then carries requested_version and version_matched_by. A build on a line split into sibling cycles (SQL Server service packs), a Firefox number that could be the standard release or the ESR, or a version above an ended line's last published patch is refused with the reason.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "nodejs"
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "18"
          }
        ],
        "responses": {
          "200": {
            "description": "EOL Risk Score",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Score"
                }
              }
            }
          },
          "401": {
            "description": "No valid X-API-Key (keyless access ended 2026-11-16 at 00:00 UTC). The body says how to get a free key (https://endoflife.ai/api#free-key); X-EOL-Key-Status names why a sent key was not honoured.",
            "headers": {
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown product, or a version that did not resolve (reason, candidates, cycle, last_published say why when the refusal was deliberate)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Daily quota exhausted for this tier (per key; the routes that need no key, per address). Retry-After says when the counter resets (next UTC midnight).",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the daily counter resets"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/status/{slug}/{version}": {
      "get": {
        "summary": "Lifecycle status for a specific version",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Status object, including the product's verified CPE 2.3 identifier(s) where one exists",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Status"
                }
              }
            }
          },
          "401": {
            "description": "No valid X-API-Key (keyless access ended 2026-11-16 at 00:00 UTC). The body says how to get a free key (https://endoflife.ai/api#free-key); X-EOL-Key-Status names why a sent key was not honoured.",
            "headers": {
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown product or version",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Daily quota exhausted for this tier (per key; the routes that need no key, per address). Retry-After says when the counter resets (next UTC midnight).",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the daily counter resets"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/batch": {
      "post": {
        "summary": "Score multiple products in one request",
        "description": "Batch limits per request: free key 5, Starter 25, Pro 50 products. Each item is {slug, version?} or {purl} (a package URL such as pkg:npm/webpack@5.110.3; resolved exactly via purl-map.json, version taken from the purl unless given). Items that do not resolve come back in results with an error field; one failing item never fails the request.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "products": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/BatchItem"
                    }
                  }
                },
                "required": [
                  "products"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Score objects in request order",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON, no products array, or (Pro) more items than the cap",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No valid X-API-Key (keyless access ended 2026-11-16 at 00:00 UTC). The body says how to get a free key (https://endoflife.ai/api#free-key); X-EOL-Key-Status names why a sent key was not honoured.",
            "headers": {
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "More items than the caller's tier allows (free, Starter)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Body larger than the 5 MB cap",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Daily quota exhausted for this tier (per key; the routes that need no key, per address). Retry-After says when the counter resets (next UTC midnight).",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the daily counter resets"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sbom": {
      "post": {
        "summary": "Audit an SBOM or AI-BOM: resolve every component by package URL or model id and score it - or return the document enriched",
        "description": "Body: a CycloneDX JSON or SPDX JSON document, either as the whole body or under a top-level \"sbom\" key. Limits: 5 MB body, 5,000 components, 32 levels of nesting (413 above any of them). Components carrying a purl resolve only by purl (exact, via endoflife.ai/purl-map.json); components without one resolve by name. Unmatched components are listed with a reason, never guessed. Resolution and counts cover the whole document; scoring is capped at the tier's batch size (free key 5, Starter 25, Pro 50). With ?enrich=1 (or \"enrich\": true beside \"sbom\") the response is the SAME document with lifecycle facts written onto every component: CycloneDX gets properties in the endoflife: namespace (status, product, cycle, eol_date, days_until_eol / days_past_eol, matched_by, score_url; risk_score, risk_grade, risk_band and kev_exposed on the scored subset; status=not-tracked with a reason otherwise) plus a metadata summary and a tools entry; SPDX gets one annotation per package from \"Tool: endoflife.ai API\" and one document-level annotation. Idempotent - re-enriching replaces earlier endoflife entries. Content-Type is application/vnd.cyclonedx+json or application/spdx+json; the X-Endoflife-Summary header carries the counts.",
        "parameters": [
          {
            "name": "enrich",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            },
            "description": "Return the enriched SBOM document instead of the JSON report"
          },
          {
            "name": "strict",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            },
            "description": "Purl-only resolution: components without a package URL are reported as not tracked (reason 'no purl (strict mode)') instead of being matched by name"
          },
          {
            "name": "warn_days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 90
            },
            "description": "Enrich mode gate: the document-level endoflife:gate is 'fail' when any resolved line is past end of life, 'warn' when any reaches it within this many days, else 'pass'"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "CycloneDX or SPDX JSON, or { sbom: <document> }"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "format, component/matched/scored counts, matched_by {purl,cpe,name,model}, low_confidence_matches, summary {past_eol, kev_exposed}, results (Score objects + component + matched_by; match_confidence 'low' and match_note on name-only matches of library-type components), unmatched [{component, reason}]",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              }
            }
          },
          "400": {
            "description": "Not a CycloneDX/SPDX JSON document",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No valid X-API-Key (keyless access ended 2026-11-16 at 00:00 UTC). The body says how to get a free key (https://endoflife.ai/api#free-key); X-EOL-Key-Status names why a sent key was not honoured.",
            "headers": {
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Body over 5 MB, more than 5,000 components, or nesting deeper than 32 levels",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Daily quota exhausted for this tier (per key; the routes that need no key, per address). Retry-After says when the counter resets (next UTC midnight).",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the daily counter resets"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sbom/watch": {
      "post": {
        "summary": "Watch this SBOM: subscribe the document's resolved lines to EOL and KEV alerts",
        "description": "Body: { \"email\": \"...\", \"sbom\": <CycloneDX or SPDX JSON>, \"strict\": false }. Every component is resolved the same way /v1/sbom resolves it (purl exact, name only without a purl, never a guess) and each resolved product line (slug:cycle) joins the subscriber's watch list on the existing alert system: a confirmation email first (double opt-in), then emails when a watched line comes inside 12 months of end of life, at 90/60/30/7 days, on the day it passes, and immediately when a CISA known-exploited CVE lands on a watched end-of-life line. Only the slug:cycle lines are stored - never the document. The list replaces the subscriber's previous watch list; 50 lines maximum.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "sbom"
                ],
                "properties": {
                  "email": {
                    "type": "string"
                  },
                  "sbom": {
                    "type": "object"
                  },
                  "strict": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ok, watching (slug:cycle list), confirmed, message, sbom {format, components, lines_resolved, lines_watched, lines_dropped, not_tracked, version_not_tracked}",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              }
            }
          },
          "400": {
            "description": "Invalid body, or no component resolves to a tracked line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Body over 5 MB, more than 5,000 components, or nesting deeper than 32 levels"
          },
          "429": {
            "description": "Signup limit (10 a day per address) or daily quota"
          },
          "503": {
            "description": "Alert storage unavailable"
          }
        }
      }
    },
    "/v1/metrics": {
      "get": {
        "summary": "Prometheus metrics for a stack, or for every cycle of one product",
        "description": "One of stack or slug is required. stack pairs are slug:version (a bare slug scores its highest-risk cycle); at most 25 pairs per call (200 on a Pro key), the rest are dropped.",
        "parameters": [
          {
            "name": "stack",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "nodejs:18,python:3.8"
          },
          {
            "name": "slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "postgresql",
            "description": "Every cycle of this product"
          }
        ],
        "responses": {
          "200": {
            "description": "Prometheus text exposition format (eol_risk_score, eol_is_eol, eol_days_until, eol_days_past, eol_risk_factor, eol_extended_support_available, eol_info, eol_scrape_success)",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              }
            }
          },
          "400": {
            "description": "Neither stack nor slug given",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No valid X-API-Key (keyless access ended 2026-11-16 at 00:00 UTC). The body says how to get a free key (https://endoflife.ai/api#free-key); X-EOL-Key-Status names why a sent key was not honoured.",
            "headers": {
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Daily quota exhausted for this tier (per key; the routes that need no key, per address). Retry-After says when the counter resets (next UTC midnight).",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              },
              "X-EOL-Key-Status": {
                "$ref": "#/components/headers/X-EOL-Key-Status"
              },
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the daily counter resets"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/badge/{slug}": {
      "get": {
        "summary": "Shields.io endpoint badge JSON for the product's highest-risk cycle",
        "description": "Badges are answered before the quota check and never count against it. An unknown product or version gives a grey 'unknown' badge, not a 404.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Shields.io endpoint schema: schemaVersion, label, message (score and band), color, cacheSeconds"
          }
        }
      }
    },
    "/v1/badge/{slug}/{version}": {
      "get": {
        "summary": "Shields.io endpoint badge JSON",
        "description": "Badges are answered before the quota check and never count against it. An unknown product or version gives a grey 'unknown' badge, not a 404.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Shields.io endpoint schema: schemaVersion, label, message (score and band), color, cacheSeconds"
          }
        }
      }
    },
    "/v1/keys/free": {
      "post": {
        "summary": "Get a free API key (150 req/day, 5 per call, no expiry) emailed to you",
        "description": "Re-entering the email of a live key re-sends that key. Free keys do not expire. A deactivated key (a paid subscription that ended or was refunded) is not re-sent: the answer is 410 with key_status and the way forward.",
        "security": [
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Key emailed: {ok, message}"
          },
          "400": {
            "description": "Invalid email or body, or an address at a temporary or throwaway email service (reason disposable_email)"
          },
          "410": {
            "description": "The key issued to this address has been deactivated (key_status inactive)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Signup limit reached (3 a day per address)"
          },
          "502": {
            "description": "The key email could not be sent"
          }
        }
      }
    },
    "/v1/alerts/subscribe": {
      "post": {
        "summary": "Email alerts for specific versions: inside 12 months of end of life, at 90/60/30/7 days, on the day, and on a CISA known-exploited CVE against a watched end-of-life line",
        "description": "Double opt-in: a confirmation email first. The list replaces the address's previous watch list; 50 lines maximum.",
        "security": [
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "products": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "example": "nodejs:18"
                    },
                    "description": "slug:version lines"
                  },
                  "product": {
                    "type": "string",
                    "description": "A single slug:version line, instead of products"
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 32
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "{ok, watching, confirmed, message}"
          },
          "400": {
            "description": "Invalid email or no slug:version line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Signup limit (10 a day per address)"
          },
          "503": {
            "description": "Alert storage unavailable"
          }
        }
      }
    },
    "/v1/alerts/confirm": {
      "get": {
        "summary": "Confirm an alert subscription (the link in the confirmation email)",
        "security": [
          {}
        ],
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "HTML: alerts confirmed"
          },
          "404": {
            "description": "HTML: the link is no longer valid"
          }
        }
      }
    },
    "/v1/alerts/unsubscribe": {
      "get": {
        "summary": "Stop all alerts for a subscription (the link in every alert email)",
        "security": [
          {}
        ],
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "HTML: unsubscribed"
          },
          "404": {
            "description": "HTML: the link is no longer valid"
          }
        }
      }
    }
  }
}