---
title: "Get an AI Gateway budget's current period"
method: GET
path: "/api/v2/budgets/{id}/current-period"
tags: ["AI Gateway"]
---

# Get an AI Gateway budget's current period

`GET /api/v2/budgets/{id}/current-period`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/budgets/{id}/current-period`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `ai_gateway_config_read`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/budgets/:id/current-period/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the active accounting window, enforced capacity, and current spend.

## Path parameters

- `id` string, uuid, required

## Response `200`

OK

- AiGatewayBudgetPeriodResponse: Response containing an AI Gateway budget's active period.
  - `data` AiGatewayBudgetPeriodResource, required: Active accounting period for an AI Gateway budget.
    - `attributes` AiGatewayBudgetPeriodAttributes, required: Accounting state enforced for an AI Gateway budget's active period.
      - `budget_id` string, uuid, required: Budget resource identifier.
      - `current_spend_microcents` integer, required: Spend currently counted against the active accounting period.
      - `default_capacity_microcents` integer, required: Capacity that new accounting periods inherit from the budget definition.
      - `effective_capacity_microcents` integer, required: Capacity enforced for the active accounting period.
      - `monitor_id` integer, nullable, required: Datadog monitor ID provisioned for this budget. Null when monitor provisioning was skipped or failed.
      - `window_end` string, date-time, required: End of the active accounting window.
      - `window_start` string, date-time, required: Start of the active accounting window.
    - `id` string, uuid, required: Budget identifier associated with this active period.
    - `type` 'budget-periods', required: AI Gateway budget period resource type.

## Other responses

- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/3f70db624329?raw)
