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

# Get Credit Budgets

> Read credit budgets for the organization.



## OpenAPI

````yaml GET /orgs/{org_id}/billing/budgets
openapi: 3.1.0
info:
  title: Timbal Platform API
  description: Public API documentation for the Timbal platform
  license:
    name: ''
  version: 2.0.0
servers:
  - url: https://api.timbal.ai
    description: Production
  - url: https://api.dev.timbal.ai
    description: Development
security: []
tags:
  - name: ace
    description: Action Control Engine (ACE) operations
  - name: analytics
    description: Org and project analytics
  - name: billing
    description: Subscriptions, usage, and payment-related operations
  - name: content
    description: Re-sign stored content URLs
  - name: files
    description: File operations
  - name: iam
    description: IAM — actions, roles, users, and authorization introspection
  - name: k2
    description: Knowledge Bases v2 operations
  - name: orgs
    description: Organization operations
  - name: projects
    description: Project operations
  - name: runs
    description: Execution operations
  - name: templates
    description: Public project template catalog
  - name: users
    description: Authenticated user profile
paths:
  /orgs/{org_id}/billing/budgets:
    get:
      tags:
        - billing
      description: Read credit budgets for the organization.
      operationId: get
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
        - name: project_id
          in: query
          description: >-
            When set, return at most the project budget for this project (0 or 1
            rows).
          required: false
          schema:
            type:
              - string
              - 'null'
        - name: role_id
          in: query
          description: >-
            When set, return at most the role budget for this role (0 or 1
            rows).
          required: false
          schema:
            type:
              - string
              - 'null'
      responses:
        '200':
          description: Budgets
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BudgetListBody'
        '400':
          description: Invalid query
        '403':
          description: Forbidden
        '404':
          description: Filtered project or role not found
      security:
        - bearer_auth: []
components:
  schemas:
    BudgetListBody:
      type: object
      required:
        - budgets
      properties:
        budgets:
          type: array
          items:
            $ref: '#/components/schemas/Budget'
    Budget:
      type: object
      description: Credit budget on a project (shared pool) or role (per attached user).
      required:
        - budget_type
        - limit_credits
      properties:
        budget_type:
          type: string
        created_at:
          type:
            - string
            - 'null'
          format: date-time
        current_credits:
          type:
            - number
            - 'null'
          format: double
        id:
          type:
            - string
            - 'null'
        limit_credits:
          type: string
        period_end:
          type:
            - string
            - 'null'
          format: date-time
        period_start:
          type:
            - string
            - 'null'
          format: date-time
        project_id:
          type:
            - string
            - 'null'
        project_name:
          type:
            - string
            - 'null'
        role_id:
          type:
            - string
            - 'null'
        role_name:
          type:
            - string
            - 'null'
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: >-
        Timbal API key. Obtain your API key from the Timbal platform settings.
        See [Authentication](/api-reference/authentication) for more
        information.

````