# Budgets

Read budgets together with their status for a period date.

## Overview

Budgets are returned with their status for one period. The period date selects the budget period of each budget and defaults to today in the workspace timezone.

Lists are paginated with page and limit parameters.

## Required scopes

- `budgets:read` — Read budgets and their status.

See [Scopes](https://tetri.app/docs/api/v1/getting-started/scopes) for how scopes are granted.

## Typical workflow

1. List budgets
2. Get a budget

## Endpoints

- `GET` List budgets — `/api/v1/programmatic/budgets`
- `GET` Get a budget — `/api/v1/programmatic/budgets/{id}`

## GET /api/v1/programmatic/budgets

List budgets

Returns budgets with status for the requested period date.

Required scope: `budgets:read`

### Parameters

- `period_date` (query, optional, string): Date used to select each budget period. Defaults to today in the workspace timezone.
- `page` (query, optional, number): One-based result page.
- `limit` (query, optional, number): Maximum budgets returned per page.

### Responses

- `200`: Budgets with status for the selected financial date and pagination metadata.
- `400`: Request parameters or payload failed validation. Inspect `code` and `details`.
- `401`: The personal access token is missing, invalid, expired, or revoked.
- `403`: The token lacks the required scope or no longer has workspace access.
- `429`: The credential exceeded its request rate limit.

## GET /api/v1/programmatic/budgets/{id}

Get a budget

Returns one budget with status for the requested period date.

Required scope: `budgets:read`

### Parameters

- `id` (path, required, string): Budget identifier.
- `period_date` (query, optional, string): Date used to select the budget period. Defaults to today in the workspace timezone.

### Responses

- `200`: The requested budget with status for the selected date.
- `400`: Request parameters or payload failed validation. Inspect `code` and `details`.
- `401`: The personal access token is missing, invalid, expired, or revoked.
- `403`: The token lacks the required scope or no longer has workspace access.
- `404`: The resource does not exist in the token workspace or is not visible to this API.
- `429`: The credential exceeded its request rate limit.
