{
  "slug": "bk-api-sends-custom-headers-with-headers-d71fd6f766e3",
  "title": "bk api sends custom headers with --headers",
  "tools": [
    "bk"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-08T06:38:54.000Z",
  "announced_at": "2026-10-08T06:38:54.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When an API endpoint requires custom headers, call it with `bk api` and pass each header using `--headers`.",
    "examples": [
      "bk api --headers 'X-Header: <value>' /<endpoint>"
    ],
    "gotchas": [
      "Version: v3.60.1",
      "[<endpoint>]: API endpoint to call.",
      "-H, --headers=HEADERS,...: Headers to include in the request. Docs do not specify the header-value syntax.",
      "Prerequisite: Use Buildkite CLI (`bk`) configured with valid API authentication for the endpoint. The API command reference does not state a minimum CLI version or specific scopes."
    ]
  },
  "why_it_matters": "Call a Buildkite API endpoint that requires a custom header.",
  "sources": [
    "https://github.com/buildkite/cli/releases/tag/v3.60.1",
    "https://buildkite.com/docs/platform/cli/reference/api"
  ],
  "rank": 0.96028,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-8c0c7cb6ea9c48f0-0:gate",
    "evidence_hash": "8c2b731487c605c23de2ca7aba95e77d75cc78a3636e1dc067e17e23f93805b7"
  },
  "review": {
    "draft_hash": "11210f70182f1aa0d08a1ee46f516397580a255367a6954ede0bb46ba4338f07",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-08T06:38:54.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.69 (>= 0.6 needed)."
  }
}
