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

# Read an app's AI spend and its process

> Dollars of provider cost this UTC month, by day and by model, the workspace's prepaid AI balance, and the app's process and storage. AI is paused while the balance is $0 or less.



## OpenAPI

````yaml https://dojo.frogbot.ai/api/openapi.json get /api/apps/{app}/usage
openapi: 3.1.0
info:
  title: Dojo API
  version: '1'
  description: >-
    Everything Dojo's pages do, for scripts and agents. Sign in with an API key
    as `Authorization: Bearer fb_…`. Paying and accepting the terms happen at a
    link a route answers, for a person to open.
servers:
  - url: https://dojo.frogbot.ai
security:
  - apiKey: []
tags:
  - name: Sign-in
  - name: Workspaces
  - name: Projects
  - name: Apps
  - name: Templates
  - name: Sharing
  - name: Deployments
  - name: Environment variables
  - name: Domains
  - name: Data
  - name: Billing
  - name: API keys
paths:
  /api/apps/{app}/usage:
    get:
      tags:
        - Apps
      summary: Read an app's AI spend and its process
      description: >-
        Dollars of provider cost this UTC month, by day and by model, the
        workspace's prepaid AI balance, and the app's process and storage. AI is
        paused while the balance is $0 or less.
      operationId: get/api/apps/:app/usage
      parameters:
        - name: app
          in: path
          required: true
          description: The app's slug, such as `deals`, or its id.
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  month:
                    type: string
                  spentUSD:
                    type: number
                  days:
                    type: array
                    items:
                      type: object
                      properties:
                        day:
                          type: string
                        requests:
                          type: integer
                        costUSD:
                          type: number
                      required:
                        - day
                        - requests
                        - costUSD
                  models:
                    type: array
                    items:
                      type: object
                      properties:
                        model:
                          type: string
                        requests:
                          type: integer
                        costUSD:
                          type: number
                      required:
                        - model
                        - requests
                        - costUSD
                  workspace:
                    type: string
                  metered:
                    type: boolean
                  balanceUSD:
                    anyOf:
                      - type: number
                      - type: 'null'
                  paused:
                    type: boolean
                  canManageFunds:
                    type: boolean
                  autoRecharge:
                    type: boolean
                  thresholdUSD:
                    type: integer
                  amountUSD:
                    type: integer
                  hasSavedCard:
                    type: boolean
                  process:
                    anyOf:
                      - type: object
                        properties:
                          size:
                            type: string
                          state:
                            type: string
                            enum:
                              - starting
                              - passing
                              - failing
                              - stopped
                              - not-deployed
                          storage:
                            anyOf:
                              - type: object
                                properties:
                                  sizeGb:
                                    type: number
                                  usedPercent:
                                    type: number
                                required:
                                  - sizeGb
                                  - usedPercent
                              - type: 'null'
                        required:
                          - size
                          - state
                          - storage
                      - type: 'null'
                required:
                  - month
                  - spentUSD
                  - days
                  - models
                  - workspace
                  - metered
                  - balanceUSD
                  - paused
                  - canManageFunds
                  - autoRecharge
                  - thresholdUSD
                  - amountUSD
                  - hasSavedCard
                  - process
        '401':
          description: '`unauthorized`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '403':
          description: '`forbidden`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '404':
          description: '`not_found`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
components:
  schemas:
    Errors:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            type: object
            required:
              - message
            properties:
              message:
                type: string
              data:
                type: object
                properties:
                  code:
                    type: string
                  url:
                    type: string
                    description: Where a person takes the next step, such as paying.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An API key from `frogbot deploy`'s sign-in, `/api/cli/device/token`, or
        the API keys page.

````

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