budgets

Returns one of the organization's budgets. If the organization has no budget with this identifier that the caller can see, or the identifier isn't a valid UUID, the request fails with 404.

get/v1/ai-cost-management/budgets/{budgetId}

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

budgetId, string uuid required

The id of the budget.

Response

The budget.

union required

A budget sets a spending limit, or declares an exemption from limits, for part of the organization's AI usage. scope selects the usage it covers.

effect tells the two kinds apart. A limit budget carries its settings in limit, window, and posture, and an exemption carries the period it covers in validity. The fields of the other kind are null.

AICostLimitBudget required

A limit budget sets a spending limit on the usage in its scope for each budget window. It has a balance, and it can have a notification rule that alerts as spend reaches shares of the limit.

OR
AICostExemptBudget required

An exemption declares that the usage in its scope is exempt from limits for a limited time. It sets no limit. The service stores and lists exemptions, but they change no balance or notification.

Example response

{
  "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "labels": {
    "env": "test"
  },
  "managed_by": {
    "owner": "terraform"
  },
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes