> ## 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.

# Usage per day

> Live and test labels for every day of a month (UTC), including days without usage.



## OpenAPI

````yaml /console-openapi.json get /api/v1/usage/daily
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/daily:
    get:
      tags:
        - Console API
      summary: Usage per day
      description: >-
        Live and test labels for every day of a month (UTC), including days
        without usage.
      operationId: getUsageDaily
      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: One entry per day of the month.
          headers:
            Cache-Control:
              $ref: '#/components/headers/CacheControl'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DailyUsage'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  headers:
    CacheControl:
      description: Always `no-store`.
      schema:
        type: string
        example: no-store
  schemas:
    DailyUsage:
      type: object
      required:
        - month
        - days
      properties:
        month:
          type: string
          example: 2026-10
        days:
          type: array
          items:
            type: object
            required:
              - date
              - live_labels
              - test_labels
            properties:
              date:
                type: string
                format: date
                example: '2026-10-01'
              live_labels:
                type: integer
                example: 210
              test_labels:
                type: integer
                example: 38
    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.