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

# Get Team Usage

> Retrieves usage statistics for the current billing period including rows processed, credits used, and credits remaining.



## OpenAPI

````yaml openapi-v0.1.json get /v0.1/team/usage
openapi: 3.0.0
info:
  title: API Documentation
  description: API description
  version: '0.1'
  contact: {}
servers:
  - url: https://api.promptloop.com/
    description: Production API v0.1
security: []
tags: []
paths:
  /v0.1/team/usage:
    get:
      tags:
        - Team
      summary: Get Team Usage
      description: >-
        Retrieves usage statistics for the current billing period including rows
        processed, credits used, and credits remaining.
      operationId: TeamController_getUsage
      parameters: []
      responses:
        '200':
          description: Successfully retrieved usage data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponseDto'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
      security:
        - x-api-key: []
components:
  schemas:
    UsageResponseDto:
      type: object
      properties:
        status:
          type: string
          enum:
            - success
            - error
          example: success
        data:
          $ref: '#/components/schemas/UsageDataDto'
        message:
          type: string
        error:
          $ref: '#/components/schemas/ErrorDetailsDto'
      required:
        - status
        - data
        - message
    ErrorResponseDto:
      type: object
      properties:
        status:
          type: string
          enum:
            - success
            - error
          example: error
        data:
          type: object
        message:
          type: string
        error:
          $ref: '#/components/schemas/ErrorDetailsDto'
      required:
        - status
        - data
        - message
    UsageDataDto:
      type: object
      properties:
        rows_processed:
          type: number
          description: Number of rows processed in the current billing period
          example: 150
        credits_used:
          type: number
          description: Total credits used in the current billing period
          example: 150
        credits_remaining:
          type: number
          description: Credits remaining in the current billing period
          example: 100
        bonus_credits_remaining:
          type: number
          description: Additional bonus credits available
          example: 50
        total_usage:
          type: number
          description: Total all-time usage across all periods
          example: 1500
        period:
          type: string
          description: Current billing period (e.g., "2024-02")
          example: 2024-02
      required:
        - rows_processed
        - credits_used
        - credits_remaining
        - bonus_credits_remaining
        - total_usage
        - period
    ErrorDetailsDto:
      type: object
      properties:
        code:
          type: number
        details:
          type: string
      required:
        - code
        - details
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key

````