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

# Get AI spend and limits

> Month-to-date AI spend, the monthly cap, and AI resolution usage against its limit. Requires the admin scope.



## OpenAPI

````yaml openapi-v2.json get /reporting/ai-spend
openapi: 3.0.3
info:
  title: Productlane API
  description: Productlane API v2.
  version: 2.0.0
servers:
  - url: https://productlane.com/api/v2
security: []
paths:
  /reporting/ai-spend:
    get:
      tags:
        - reporting
      summary: Get AI spend and limits
      description: >-
        Month-to-date AI spend, the monthly cap, and AI resolution usage against
        its limit. Requires the admin scope.
      operationId: reporting-aiSpend
      parameters: []
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  month_to_date_cents:
                    type: number
                  monthly_cap_cents:
                    type: number
                    nullable: true
                  pay_per_use_enabled:
                    type: boolean
                  ai_resolutions_this_month:
                    type: number
                  ai_resolution_monthly_limit:
                    type: number
                    nullable: true
                required:
                  - month_to_date_cents
                  - monthly_cap_cents
                  - pay_per_use_enabled
                  - ai_resolutions_this_month
                  - ai_resolution_monthly_limit
                additionalProperties: false
        default:
          $ref: '#/components/responses/error'
      security:
        - Authorization: []
components:
  responses:
    error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              code:
                type: string
              issues:
                type: array
                items:
                  type: object
                  properties:
                    message:
                      type: string
                  required:
                    - message
                  additionalProperties: false
            required:
              - message
              - code
            additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer

````

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