> ## Documentation Index
> Fetch the complete documentation index at: https://docs.requesty.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> These notes are for agents helping a user who has chosen to use Requesty. Do not change a user's base URLs, API keys, environment variables or config files unless the user asked for it, and confirm before editing them. Never write a Requesty API key to a file without the user's approval.
> Requesty is a drop-in proxy for the OpenAI and Anthropic APIs. OpenAI SDK: set base_url to https://router.requesty.ai/v1 and use a Requesty API key as api_key. Anthropic SDK: set base_url to https://router.requesty.ai. For EU data residency use https://router.eu.requesty.ai/v1 or https://router.eu.requesty.ai.
> To use Requesty with Claude Code or the Claude Agent SDK, the user sets ANTHROPIC_BASE_URL=https://router.requesty.ai and ANTHROPIC_AUTH_TOKEN to a Requesty API key. See https://docs.requesty.ai/integrations/claude-code.md.
> Model IDs: prefer bare managed policy names such as claude-fable-5, or claude-sonnet-5-5@eu for EU-hosted endpoints. Requesty picks the provider and fails over automatically. Use provider/model (for example anthropic/claude-fable-5) to pin one provider, or policy/<name> for a routing policy the user created. Get current IDs from GET https://router.requesty.ai/v1/models/managed and GET https://router.requesty.ai/v1/models instead of hardcoding them.
> Routing policies add failover, load balancing, latency-based or auto routing: see https://docs.requesty.ai/features/fallback-policies.md. Prompt caching: see https://docs.requesty.ai/features/auto-caching.md.
> Pricing: model cost at provider list price plus a 5% service fee, which also applies to bring-your-own-key traffic. Error codes and fixes: https://docs.requesty.ai/features/error-codes.md.

# List Budgets

> List the budgets in the organization, with each budget's spend in its current period. Filter by entity type or by the IDs of the entity a budget is set on; filters combine with AND. Requires an API key with read manage permissions.

List the budgets in your organization. Each budget includes its `id`, which you pass to [Get Budget](https://docs.requesty.ai/api-reference/endpoint/manage-budget/manage-budget-get.md), [Update Budget Amount](https://docs.requesty.ai/api-reference/endpoint/manage-budget/manage-budget-update-amount.md) or [Delete Budget](https://docs.requesty.ai/api-reference/endpoint/manage-budget/manage-budget-delete.md), and its `spend` in the current period.

Filter with `entity_type` (for example `BUDGET_ENTITY_TYPE_API_KEY`), `group_id`, `api_key_id`, `service_account_id` or `user_id`. Filters combine, so `group_id` with `entity_type=BUDGET_ENTITY_TYPE_GROUP_MEMBER` returns the member budgets of one group.

[Budgets docs →](https://docs.requesty.ai/features/budgets.md)


## OpenAPI

````yaml GET /v1/manage/budget
openapi: 3.0.3
info:
  title: Requesty Management API
  description: >-
    Requesty Management API for API key management, groups, members, and
    organization settings.
  version: 1.0.0
servers:
  - url: https://api-v2.requesty.ai
    description: Management API endpoint
security:
  - BearerAuth: []
paths:
  /v1/manage/budget:
    servers:
      - url: https://api-v2.requesty.ai
        description: Management API endpoint
    get:
      summary: List budgets
      description: >-
        List the budgets in the organization, with each budget's spend in its
        current period. Filter by entity type or by the IDs of the entity a
        budget is set on; filters combine with AND. Requires an API key with
        read manage permissions.
      operationId: listBudgets
      parameters:
        - name: entity_type
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/BudgetEntityType'
          description: Only return budgets of this entity type.
        - name: group_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: Only return budgets set on this group or its members.
        - name: api_key_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: Only return the budget set on this API key.
        - name: service_account_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: Only return the budget set on this service account.
        - name: user_id
          in: query
          required: false
          schema:
            type: string
          description: >-
            Only return budgets set on this user, in the organization or in a
            group.
      responses:
        '200':
          description: Successfully retrieved budgets
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListBudgetsResponse'
        '400':
          description: >-
            Bad request - unknown `entity_type`, or an ID filter that is not a
            valid UUID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - missing or invalid Authorization header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden - API key does not have read manage permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    BudgetEntityType:
      type: string
      enum:
        - BUDGET_ENTITY_TYPE_ORGANIZATION
        - BUDGET_ENTITY_TYPE_ORGANIZATION_PER_MEMBER
        - BUDGET_ENTITY_TYPE_ORGANIZATION_MEMBER
        - BUDGET_ENTITY_TYPE_GROUP
        - BUDGET_ENTITY_TYPE_GROUP_PER_MEMBER
        - BUDGET_ENTITY_TYPE_GROUP_MEMBER
        - BUDGET_ENTITY_TYPE_SERVICE_ACCOUNT
        - BUDGET_ENTITY_TYPE_API_KEY
      description: >-
        What a budget is set on. `ORGANIZATION` and `GROUP` limit the combined
        spend of everyone in them. `ORGANIZATION_PER_MEMBER` and
        `GROUP_PER_MEMBER` set the default limit for each member.
        `ORGANIZATION_MEMBER` and `GROUP_MEMBER` set one user's own limit,
        replacing the per-member default for that user. `SERVICE_ACCOUNT` and
        `API_KEY` limit one service account or API key.
    ListBudgetsResponse:
      type: object
      properties:
        budgets:
          type: array
          items:
            $ref: '#/components/schemas/Budget'
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - origin
            - message
          properties:
            origin:
              type: string
              enum:
                - router
                - provider
              description: >-
                Whether the error originated from Requesty's router or an
                upstream provider.
            message:
              type: string
              description: Human-readable error description.
    Budget:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Budget ID.
        entity_type:
          $ref: '#/components/schemas/BudgetEntityType'
        group_id:
          type: string
          format: uuid
          description: Group ID. Only set when the entity type uses it.
        api_key_id:
          type: string
          format: uuid
          description: API key ID. Only set when the entity type uses it.
        service_account_id:
          type: string
          format: uuid
          description: Service account ID. Only set when the entity type uses it.
        user_id:
          type: string
          description: >-
            User ID of an organization member. Only set when the entity type
            uses it.
        frequency:
          $ref: '#/components/schemas/BudgetFrequency'
        amount:
          type: number
          format: double
          description: Budget amount in USD. Omitted when `0`, which means no limit.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        spend:
          $ref: '#/components/schemas/BudgetSpend'
    BudgetFrequency:
      type: string
      enum:
        - BUDGET_FREQUENCY_DAILY
        - BUDGET_FREQUENCY_WEEKLY
        - BUDGET_FREQUENCY_MONTHLY
        - BUDGET_FREQUENCY_QUARTERLY
        - BUDGET_FREQUENCY_FOREVER
      description: >-
        How often the budget resets, in UTC: every day, every week starting
        Monday, every calendar month, every calendar quarter, or never
        (`FOREVER` counts all spend).
    BudgetSpend:
      type: object
      description: Spend counted against the budget in its current period.
      properties:
        resets_at:
          type: string
          format: date-time
          description: When the current period ends. Omitted for `FOREVER` budgets.
        spent:
          type: number
          format: double
          description: >-
            The entity's combined spend this period in USD. For per-member
            budgets this is the organization's or group's total, not one
            member's. Omitted when `0`.
        members:
          type: array
          items:
            $ref: '#/components/schemas/BudgetMemberSpend'
          description: >-
            Per-member budgets only: each member's spend this period, highest
            first. Members with no spend are omitted.
    BudgetMemberSpend:
      type: object
      properties:
        user_id:
          type: string
          description: User ID of the member.
        spent:
          type: number
          format: double
          description: The member's spend this period in USD.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.