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

# Monthly usage totals

> Live and test labels, requests and the estimated cost of a month. The estimate is live labels times the price per label, rounded to cents; your invoice is authoritative.



## OpenAPI

````yaml /console-openapi.json get /api/v1/usage
openapi: 3.1.0
info:
  title: Caretly Console API
  version: 1.0.0
  description: >-
    Read your organisation's usage, API keys and billing status as JSON.
    Authenticate with any of your API keys, live or test. All endpoints are
    read-only.
servers:
  - url: https://caretly.dev/console
security:
  - bearerAuth: []
paths:
  /api/v1/usage:
    get:
      tags:
        - Console API
      summary: Monthly usage totals
      description: >-
        Live and test labels, requests and the estimated cost of a month. The
        estimate is live labels times the price per label, rounded to cents;
        your invoice is authoritative.
      operationId: getUsage
      parameters:
        - name: month
          in: query
          required: false
          description: >-
            The calendar month in UTC, as `YYYY-MM`. Defaults to the current
            month.
          schema:
            type: string
            pattern: ^[0-9]{4}-[0-9]{2}$
            example: 2026-10
      responses:
        '200':
          description: Totals for the month.
          headers:
            Cache-Control:
              $ref: '#/components/headers/CacheControl'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageTotals'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  headers:
    CacheControl:
      description: Always `no-store`.
      schema:
        type: string
        example: no-store
  schemas:
    UsageTotals:
      type: object
      required:
        - month
        - live_labels
        - free_labels
        - test_labels
        - requests
        - estimated_cost
      properties:
        month:
          type: string
          example: 2026-10
        live_labels:
          type: integer
          description: Live labels, including free_labels.
          example: 6170
        free_labels:
          type: integer
          description: >-
            Live labels rendered with free access: never billed, also after it
            ended.
          example: 0
        test_labels:
          type: integer
          description: Free, watermarked labels.
          example: 500
        requests:
          type: integer
          description: Render requests, live and test.
          example: 2253
        estimated_cost:
          $ref: '#/components/schemas/Money'
    Money:
      type: object
      required:
        - amount
        - currency
      properties:
        amount:
          type: number
          example: 12.34
        currency:
          type: string
          const: EUR
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: What went wrong.
  responses:
    BadRequest:
      description: A query parameter is not valid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: '`from` and `to` may be at most 31 days apart.'
    Unauthorized:
      description: The API key is missing, invalid, expired or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: >-
              This API key has been revoked. Send one of your API keys as
              `Authorization: Bearer <key>`; manage keys at
              https://caretly.dev/console/keys
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        One of your API keys (`zpl_live_…` or `zpl_test_…`), created at
        https://caretly.dev/console/keys. Revoked keys are refused immediately.

````

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