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

# Get a team's budget report

> Budget, spend, allocations and flags for the team's current period (Enterprise)



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml get /groups/{id}/budget
openapi: 3.0.1
info:
  title: Midsommar API
  description: This is the API for the Midsommar user and group management system.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: //localhost:8080/api/v1
security: []
paths:
  /groups/{id}/budget:
    get:
      tags:
        - team-budgets
      summary: Get a team's budget report
      description: >-
        Budget, spend, allocations and flags for the team's current period
        (Enterprise)
      parameters:
        - name: id
          in: path
          description: Team ID
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/team_budget.Report'
        '402':
          description: Payment Required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    team_budget.Report:
      type: object
      properties:
        allocated:
          type: number
        apps:
          type: array
          items:
            $ref: '#/components/schemas/team_budget.AppAllocation'
        blocking:
          type: boolean
          description: 'Blocking: the team hard-blocks and its Apps are being refused.'
        budget_start_date:
          type: string
        chat_spent:
          type: number
        default_app_allocation:
          type: number
        enabled:
          type: boolean
          description: global switch
        enforcement:
          type: string
        managed:
          type: boolean
        monthly_budget:
          type: number
        over_allocated:
          type: boolean
        over_budget:
          type: boolean
          description: |-
            OverBudget: spend has reached the budget. OverAllocated: App
            allocations add up to more than the budget.
        period_end:
          type: string
        period_start:
          type: string
        spent:
          type: number
          description: |-
            Spent is all spend attributed to the team this period: its Apps
            (including deleted ones) and its members' chat.
        team_id:
          type: integer
        team_name:
          type: string
        unallocated:
          type: number
          description: negative when over-allocated
        usage:
          type: number
          description: percent of MonthlyBudget
    api.ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              detail:
                type: string
              title:
                type: string
      description: Error response model
    team_budget.AppAllocation:
      type: object
      properties:
        allocation:
          type: number
        app_id:
          type: integer
        blocked:
          type: boolean
          description: Blocked is a live App with a budget of zero.
        deleted:
          type: boolean
          description: |-
            Deleted Apps keep their spend in the period they made it, but no
            longer hold an allocation.
        name:
          type: string
        owner_email:
          type: string
        owner_id:
          type: integer
        spent:
          type: number
        uncapped:
          type: boolean
          description: |-
            Uncapped is a live App with no limit of its own; its spend counts
            towards the team ceiling but it holds no allocation.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````