---
title: "Get Organization Spending Limits"
method: GET
path: "/v1/gateway/spending-limits/"
tags: ["Gateway"]
---

# Get Organization Spending Limits

`GET /v1/gateway/spending-limits/`

## Request

- Base URL: `https://logfire-api.pydantic.dev/api`
- URL: `https://logfire-api.pydantic.dev/api/v1/gateway/spending-limits/`
- Auth: OAuth 2
  - Authorization code: `api/oauth/authorize`
  - Token URL: `/api/oauth/token` scopes: `organization:read_gateway`
- TypeScript: <https://skmtc.dev/pydantic/apis/pydantic-logfire-api/docs/v1/gateway/spending-limits/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the organization's Gateway spending limits.

An organization limit caps the Gateway spend of every project and credential in the organization.

## Response `200`

Successful Response

- GatewaySpendingLimitsRead
  - `daily_usd` integer, nullable, required
  - `weekly_usd` integer, nullable, required
  - `monthly_usd` integer, nullable, required

## Other responses

- `403`: The organization plan does not include the AI Gateway
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/pydantic/apis/pydantic-logfire-api.md) - [All operations](https://skmtc.dev/pydantic/apis/pydantic-logfire-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pydantic/apis/pydantic-logfire-api/revisions/7996e45256f4?raw)
