{
  "slug": "vault-api-exposes-consumption-billing-overview-27cdb4781ff9",
  "title": "Vault API exposes consumption billing overview",
  "tools": [
    "vault"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-14T20:07:04.000Z",
  "announced_at": "2026-04-14T20:07:04.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When integrating consumption billing metrics, call `BillingOverview` on the Vault API client’s `Sys()` handle to retrieve current and previous month metrics.",
    "examples": [
      "overview, err := client.Sys().BillingOverview(false)"
    ],
    "gotchas": [
      "Version: v2.0.0",
      "updateCounts (required): When true, updates current-month counts before returning; this is an expensive operation that holds locks and should be used sparingly. False reads the existing counts.",
      "Prerequisite: Call the restricted endpoint from the root or administrative namespace.",
      "Prerequisite: The API request requires a Vault token; the endpoint documentation’s sample sends `X-Vault-Token`.",
      "Docs conflict: The current HTTP API documentation describes optional `start_month` and `end_month` parameters, but the `v2.0.0` Go client method takes only `updateCounts` and does not expose those parameters."
    ]
  },
  "why_it_matters": "When integrating Vault consumption billing metrics into code, call the billing overview API client method.",
  "sources": [
    "https://github.com/hashicorp/vault/releases/tag/v2.0.0",
    "https://github.com/hashicorp/vault/blob/v2.0.0/api/sys_billing.go",
    "https://developer.hashicorp.com/vault/api-docs/system/billing/overview"
  ],
  "rank": 0.98027,
  "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": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-575526cb096709c1-8:gate",
    "evidence_hash": "53e58d5caa48c4591e38294c8c51ab2a9e5a1850942c3a962e45878fbccc134c"
  },
  "review": {
    "draft_hash": "7462b390e20d7826f3bbe2ffb655ac4969ae85d164a1d2580616c66a8686f1c1",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.63 (>= 0.6 needed)."
  }
}
