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

# Dashboard: Usage

> Plan usage in the usage month: active contacts (as on the Plans and usage screen), connections, flows, storage and credits.



## OpenAPI

````yaml /api-reference/openapi.en.yaml get /reports/dashboard/usage
openapi: 3.0.3
info:
  title: Connecta DESK Public API
  version: 1.0.0
  description: >-
    Public API of Connecta DESK, available at `/api/v1`. Access uses a token
    generated in the tokens module. Each token has permissions per **module ×
    method**, and every list read is paginated.


    ## Authentication


    ```

    Authorization: Bearer sk_live_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6

    ```


    The token belongs to a **company**, not to a user. The company used is
    always the token's company, so sending `companyId` in the body has no
    effect. A missing, invalid, revoked or expired token gets the same `401`
    response.


    ## Order of checks


    1. **token** → `401`

    2. **active company** → `403`

    3. **API enabled on the plan** → `403 ERR_API_NOT_ENABLED` (does not apply
    to on-premise)

    4. **company rate limit** → `429`

    5. **token permission** → `403 ERR_API_FORBIDDEN_SCOPE`


    ## User ids


    Every user id in the API is the user's id **in this company**, the same one
    `GET /users` returns. This applies to what the API returns (`user.id`,
    `assignedTo.id`, `userCreated.id`) and to what it accepts (`userId`,
    `userIds`, `assignedToUserId` and the `{id}` in user routes).


    The same person can work in several companies, with a different name and
    profile in each one, and has a different id in each company.


    An id that does not belong to this company returns `404`, with the same
    message as an id that does not exist.


    ## Pagination


    Every list `GET` is paginated. The `meta` contains only `page`, `perPage`
    and `hasMore`, without the total number of records. To go through
    everything, keep advancing `page` while `hasMore` is `true`.


    ## Idempotency


    Optional on `POST`/`PUT`, through the `Idempotency-Key` header. If you
    repeat the call with the same key and the same body, you get the stored
    response (with `Idempotent-Replay: true`). With the same key and a different
    body, the response is `409`.
servers:
  - url: https://api.connectadesk.com/api/v1
    description: Production
security:
  - apiToken: []
tags:
  - name: contacts
    description: Contact records, extra fields and marketing source.
  - name: tickets
    x-displayName: Tickets
    description: Opening, transferring, closing and wrap-up of tickets.
  - name: messages
    description: Asynchronous sending and reading of messages.
  - name: tags
    description: Tags and their link to tickets.
  - name: queues
    description: Service queues and their agents.
  - name: wrapups
    description: Wrap-up types.
  - name: users
    description: Agents and administrators.
  - name: schedules
    description: Scheduled messages.
  - name: quick-messages
    description: Quick replies.
  - name: campaigns
    description: Bulk sending.
  - name: crm
    description: >-
      Boards, stages, cards and activities. The CRM numbers are in the dashboard
      (`/reports/dashboard/crm`).
  - name: channels
    description: Channels (read only).
  - name: reports
    description: Reports and dashboards.
  - name: products
    description: Product catalog, categories and sales performance.
  - name: custom-fields
    description: Custom fields for contacts and cards, plus company-wide global variables.
  - name: profiles
    description: Company permission profiles (read only).
  - name: webchat
    description: >-
      Native webchat from your own system: open a visitor session, send and read
      messages. The token needs the `webchat` scope (GET and POST).
paths:
  /reports/dashboard/usage:
    get:
      tags:
        - reports
      summary: 'Dashboard: Usage'
      description: >-
        Plan usage in the usage month: active contacts (as on the Plans and
        usage screen), connections, flows, storage and credits.
      parameters:
        - name: cycleStart
          in: query
          description: >-
            Usage month (`YYYY-MM-01`). Without it, or outside the last 12
            months, the current month applies.
          schema:
            type: string
            format: date
          example: '2026-10-01'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DashboardUsage'
components:
  schemas:
    DashboardUsage:
      type: object
      description: >-
        Usage tab, for the usage month (the same as the Plans and usage screen:
        it starts on the 1st).
      properties:
        cycles:
          type: array
          description: >-
            The usage months the record keeps (12 by default, the active
            contacts retention), from most recent to oldest.
          items:
            type: object
            properties:
              start:
                type: string
                format: date
                example: '2026-11-01'
              end:
                type: string
                format: date
                description: 'Exclusive: the 1st of the following month.'
                example: '2026-12-01'
              isCurrent:
                type: boolean
                example: true
        activeContacts:
          type: object
          description: Active contacts of the month, as on the Plans and usage screen.
          properties:
            used:
              type: integer
              example: 840
            maxPlan:
              type: integer
              nullable: true
              example: 1000
            maxRecurringAddon:
              type: integer
              example: 200
            maxStandaloneAddon:
              type: integer
              example: 0
            maxTotal:
              type: integer
              nullable: true
              example: 1200
            projection:
              type: integer
              nullable: true
              description: Projection for the end of the month at the current pace.
              example: 1100
            projectedExhaustionAt:
              type: string
              format: date
              nullable: true
              description: >-
                When the limit runs out at the current pace, if it runs out
                within the month.
        flows:
          $ref: '#/components/schemas/DashboardUsageQuota'
        nativeChannels:
          $ref: '#/components/schemas/DashboardUsageQuota'
        externalChannels:
          $ref: '#/components/schemas/DashboardUsageQuota'
        storage:
          type: object
          properties:
            usedBytes:
              type: integer
              example: 734003200
            maxPlanBytes:
              type: integer
              nullable: true
              example: 5368709120
            maxAddonBytes:
              type: integer
              example: 0
            maxTotalBytes:
              type: integer
              nullable: true
              example: 5368709120
        whatsappCredits:
          type: object
          description: >-
            WhatsApp credits of the month, from the credit statement: each
            delivered send, top-up, reversal and adjustment leaves a line.
          properties:
            balance:
              type: number
              example: 152.4
            recharged:
              type: number
              description: >-
                Credits in during the month: purchases, top-ups and manual
                credits. Manual credit removal is not included.
              example: 200
            consumed:
              type: number
              nullable: true
              description: >-
                Credits out during the month: delivered sends, reversals,
                cancellations and manual debits. Null when the month ended
                before consumption started being recorded (`recordedSince`), or
                without the statement.
              example: 73.5
            statement:
              type: boolean
              description: >-
                The month's statement can be read. False while the statement
                does not exist in the environment.
              example: true
            recordedSince:
              type: string
              format: date-time
              nullable: true
              description: >-
                Since when consumption is recorded. Before that, only top-ups
                and adjustments.
            history:
              type: array
              description: The months of `cycles`, in the same order.
              items:
                type: object
                properties:
                  start:
                    type: string
                    format: date
                    example: '2026-10-01'
                  end:
                    type: string
                    format: date
                    description: 'Exclusive: the 1st of the following month.'
                    example: '2026-11-01'
                  recharged:
                    type: number
                    example: 100
                  consumed:
                    type: number
                    nullable: true
                    example: 41.5
                  lines:
                    type: integer
                    description: >-
                      Lines of the month's statement (a day's delivered sends
                      count as one).
                    example: 9
        aiCredits:
          type: object
          description: >-
            AI credits of the month, from the AI agents module. Without the
            module in the environment, `available` is false and the numbers come
            as zero.
          properties:
            available:
              type: boolean
              example: true
            balance:
              type: number
              description: What can still be used now.
              example: 340
            used:
              type: number
              description: Consumed in the month.
              example: 1350
            maxPlan:
              type: number
              example: 1000
            maxRecurringAddon:
              type: number
              example: 500
            maxStandaloneAddon:
              type: number
              description: >-
                One-off credits that count in the month: the balance plus what
                was consumed from them in the month.
              example: 200
            maxTotal:
              type: number
              description: >-
                Plan + recurring + one-off for the month. Credits are never
                unlimited.
              example: 1700
            projection:
              type: number
              nullable: true
              description: >-
                Projection for the end of the month at the current pace; null
                for a finished month.
              example: 1900
            projectedExhaustionAt:
              type: string
              format: date
              nullable: true
              description: >-
                When the credits run out at the current pace, if they run out
                within the month.
            history:
              type: array
              description: The months of `cycles`, in the same order.
              items:
                type: object
                properties:
                  start:
                    type: string
                    format: date
                    example: '2026-10-01'
                  end:
                    type: string
                    format: date
                    example: '2026-11-01'
                  used:
                    type: number
                    nullable: true
                    example: 812.5
                  limit:
                    type: number
                    nullable: true
                    description: >-
                      Plan + recurring recorded for that month; null without a
                      record. The current month's includes the one-off credits.
                    example: 1500
        history:
          type: array
          description: Active contacts per month, in the order of `cycles`.
          items:
            type: object
            properties:
              start:
                type: string
                format: date
                example: '2026-10-01'
              end:
                type: string
                format: date
                description: 'Exclusive: the 1st of the following month.'
                example: '2026-11-01'
              used:
                type: integer
                nullable: true
                description: >-
                  Null: a month before the company's first record, with no data
                  to compare.
                example: 910
    DashboardUsageQuota:
      type: object
      properties:
        used:
          type: integer
          example: 3
        maxPlan:
          type: integer
          nullable: true
          description: 'Null: no limit.'
          example: 5
        maxAddon:
          type: integer
          example: 0
        maxTotal:
          type: integer
          nullable: true
          example: 5
  securitySchemes:
    apiToken:
      type: http
      scheme: bearer
      description: API token in the `sk_live_…` format.

````

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