{
  "id": "api/rest-api-version-header-required",
  "signature": "400 Bad Request: API version header required",
  "signature_zh": "400 错误请求：需要 API 版本头部",
  "regex": "API version header required|version.*header.*missing|Accept-Version.*required",
  "domain": "api",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The API endpoint requires a specific version header (e.g., Accept-Version or X-API-Version) that was not included in the request.",
  "root_cause_type": "generic",
  "root_cause_zh": "API 端点需要特定的版本头部（例如 Accept-Version 或 X-API-Version），但请求中未包含。",
  "versions": [
    {
      "version": "REST API v1.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Stripe API v2023-10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "GitHub API v3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The API specifically checks the header; query parameters are ignored for versioning.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Some APIs require explicit versioning; no default is assumed.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The version check is often middleware-level and applies to all methods.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Add the required version header to every request.",
      "success_rate": 0.95,
      "how": "Add the required version header to every request.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use an API client configuration that automatically includes the version header.",
      "success_rate": 0.9,
      "how": "Use an API client configuration that automatically includes the version header.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Add the required version header to every request.",
    "Use an API client configuration that automatically includes the version header."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://stripe.com/docs/api/versioning",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.92,
  "resolvable": "true",
  "first_seen": "2023-08-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}