---
type: api
title: Get a budget for the organization.
description: Retrieves a budget for the specified organization. Callers with org-wide budget access receive any budget in the organization. Others receive cloud-resource-scoped budgets only when all scope values are resources they can access; otherwise 403 Forbidden. Scope values referring to deleted instances are ignored.
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-billing/operation/operation-getbudgetv1
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-billing/operation/operation-getbudgetv1
products:
  - Elastic Cloud Hosted
---

# Get a budget for the organization.

- Server: `https://cloud.elastic.co` (Public)

## Paths

- `GET` `/api/v1/billing/organization/{organization_id}/budgets/{budget_id}`

#### Path parameters

- `organization_id` (string) — required
  The organization ID
- `budget_id` (integer) — required
  The budget ID

## Description

Retrieves a budget for the specified organization. Callers with org-wide budget access receive any budget in the organization. Others receive cloud-resource-scoped budgets only when all scope values are resources they can access; otherwise 403 Forbidden. Scope values referring to deleted instances are ignored.

## Responses

#### `200`

Budget successfully retrieved

`application/json`

- `active` (boolean)
- `alerts` (object[])
  - `created_at` (string)
  - `id` (integer)
  - `last_exceeded_at` (string)
  - `operator` (enum)
    Values: `gte`
  - `threshold` (integer)
  - `threshold_type` (enum)
    Values: `percentage`
- `amount` (integer)
- `created_at` (string)
- `id` (integer)
- `name` (string)
- `period` (enum)
  Values: `monthly`
- `recipient_group` (enum[])
  Values: `organization-admins`, `billing-admins`, `resource-viewers`, `resource-editors`, `resource-admins`
- `scope_type` (enum)
  Values: `organization`, `cloud_resource`
- `scope_values` (string[])
- `window` (object)
  Recurring budget window. Allowed (repeat_unit, repeat_every) pairs: daily (day, 1), weekly (week, 1), monthly (month, 1), quarterly (month, 3), yearly (year, 1). Windows reset at 00:00 UTC; spend is counted from the later of the window start and the budget creation time. reset_on is omitted for daily windows.
  - `repeat_every` (integer)
  - `repeat_unit` (enum)
    Values: `day`, `week`, `month`, `year`
  - `reset_on` (object)
    The user's reset selection. Only the fields required by the window frequency are set: weekly uses weekday, monthly uses day, quarterly uses month, yearly uses month and day. Days 29-31 clamp to the last day of shorter months, recomputed every period from this selection (day 31 resets on Jan 31, Feb 28, Mar 31, Apr 30; Feb 29 resets on Feb 28 in non-leap years).
    - `day` (integer)
      Day of the month, 1 to 31.
    - `month` (enum)
      Values: `jan`, `feb`, `mar`, `apr`, `may`, `jun`, `jul`, `aug`, `sep`, `oct`, `nov`, `dec`
    - `weekday` (enum)
      Values: `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`
#### `403`

Not allowed to read this budget

#### `404`

Budget not found

#### `500`

Internal server error

## Code examples

#### curl

```curl
curl -X GET "https://cloud.elastic.co/api/v1/billing/organization/${ORGANIZATION_ID}/budgets/${BUDGET_ID}"
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "active": false,
  "alerts": [
    {
      "created_at": "string",
      "id": 0,
      "last_exceeded_at": "string",
      "operator": "gte",
      "threshold": 0,
      "threshold_type": "percentage"
    }
  ],
  "amount": 0,
  "created_at": "string",
  "id": 0,
  "name": "string",
  "period": "monthly",
  "recipient_group": [
    "organization-admins"
  ],
  "scope_type": "organization",
  "scope_values": [
    "string"
  ],
  "window": {
    "repeat_every": 0,
    "repeat_unit": "day",
    "reset_on": {
      "day": 0,
      "month": "jan",
      "weekday": "mon"
    }
  }
}
```

