> ## 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: CRM tab

> The CRM tab for a board in the period. Requires the `reports` and `crm` modules; the token sees all of the board's cards.



## OpenAPI

````yaml /api-reference/openapi.en.yaml get /reports/dashboard/crm
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/crm:
    get:
      tags:
        - reports
      summary: 'Dashboard: CRM tab'
      description: >-
        The CRM tab for a board in the period. Requires the `reports` and `crm`
        modules; the token sees all of the board's cards.
      parameters:
        - $ref: '#/components/parameters/dashboardCrmBoard'
        - $ref: '#/components/parameters/dashboardDateStart'
        - $ref: '#/components/parameters/dashboardDateEnd'
        - name: classificationIds
          in: query
          description: Lead rating ids, comma-separated.
          schema:
            type: string
        - name: customFields
          in: query
          description: >-
            Filter by the card's custom fields, in JSON: `[{"id": 12, "values":
            ["SP"]}]` (up to 20 fields).
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DashboardCrm'
        '400':
          description: >-
            Period missing or not in the `YYYY-MM-DD` format
            (`ERR_DATE_NOT_DEFINED`), start after end
            (`ERR_DATE_INTERVAL_INVALID`) or longer than 365 days
            (`ERR_DATE_RANGE_TOO_LONG`).
        '403':
          description: >-
            The token needs `GET` on the `reports` and `crm` modules
            (`ERR_API_FORBIDDEN_SCOPE`).
        '404':
          description: >-
            Board missing, nonexistent or from another company
            (`ERR_CRM_BOARD_NOT_FOUND`).
components:
  parameters:
    dashboardCrmBoard:
      name: boardId
      in: query
      required: true
      description: >-
        CRM board. A board outside your company returns `404`
        (`ERR_CRM_BOARD_NOT_FOUND`).
      schema:
        type: integer
      example: 5
    dashboardDateStart:
      name: dateStart
      in: query
      required: true
      description: >-
        Start of the period, `YYYY-MM-DD`, in the company time zone. The period
        can be up to 365 days.
      schema:
        type: string
        format: date
      example: '2026-10-01'
    dashboardDateEnd:
      name: dateEnd
      in: query
      required: true
      description: End of the period, `YYYY-MM-DD` (the whole day counts).
      schema:
        type: string
        format: date
      example: '2026-10-31'
  schemas:
    DashboardCrm:
      type: object
      description: >-
        CRM tab of a board in the period. `cards` and `value` are the cards
        created in the period; won (`won*`) and lost (`lost*`) are those of the
        period by the date they were won or lost, whatever their creation date;
        open (`open*`) are those with no outcome on the last day of the period,
        created in it or before (a card created before and closed after the
        period was open in it). The three statuses add up to the cards in play
        in the period, the base for conversions and the top of the funnel.
      properties:
        summary:
          type: object
          description: >-
            Created, won, lost and open in the period, with average deal size
            (of the created ones), conversions (over the cards in play) and
            cycle (of the ones won in the period).
          properties:
            cards:
              type: integer
              description: Cards created in the period.
              example: 42
            value:
              type: number
              description: Value of the cards created in the period.
              example: 186500
            wonCards:
              type: integer
              example: 12
            wonValue:
              type: number
              example: 98400
            lostCards:
              type: integer
              example: 9
            lostValue:
              type: number
              example: 31200
            openCards:
              type: integer
              example: 57
            openValue:
              type: number
              example: 412300
            split:
              type: object
              description: >-
                Each status split between the cards created in the period
                (`created`, which adds up to `cards`) and those created before
                (`prior`). Each side has `wonCards`, `wonValue`, `lostCards`,
                `lostValue`, `openCards` and `openValue`.
              properties:
                created:
                  type: object
                prior:
                  type: object
            ticket:
              type: number
              description: '`value` ÷ `cards`.'
              example: 4440.48
            convCards:
              type: number
              description: Won ÷ (won + lost + open), in %.
              example: 15.38
            convValue:
              type: number
              description: Won value ÷ value of the won, lost and open cards, in %.
              example: 18.19
            cycleAvg:
              type: integer
              description: Days from creation to win, for the cards won in the period.
              example: 23
            cycleMin:
              type: integer
              example: 2
            cycleMax:
              type: integer
              example: 88
        evolution:
          type: object
          description: >-
            Bars by day, week or month (`step`, `buckets`). In each bar: created
            (`created*`), won and lost within it, and open on its last day.
        funnel:
          type: array
          items:
            type: object
          description: Funnel stages, over the cards in play in the period.
        classification:
          type: array
          items:
            type: object
          description: >-
            Cards created in the period by lead classification (`wonCards`: won
            in the period).
        origins:
          type: array
          items:
            type: object
          description: >-
            By source: created (`cards`, `value`) and the three statuses of the
            period.
        users:
          type: array
          description: >-
            By owner, with the same rules as the summary. Null `userId`: a card
            with no owner, or owned by someone who is no longer in the company —
            the row stays so the total matches the summary.
          items:
            type: object
            properties:
              userId:
                type: integer
                nullable: true
                example: 3
              name:
                type: string
                nullable: true
                example: Marina Alves
              cards:
                type: integer
                description: Cards created in the period.
                example: 18
              value:
                type: number
                example: 42000
              wonCards:
                type: integer
                example: 6
              wonValue:
                type: number
                example: 18000
              lostCards:
                type: integer
                example: 4
              lostValue:
                type: number
                example: 9000
              openCards:
                type: integer
                example: 8
              openValue:
                type: number
                example: 15000
              reach:
                type: array
                items:
                  type: integer
                description: >-
                  Cards that reached each funnel stage, in the order of
                  `funnel`.
              openStages:
                type: array
                items:
                  type: object
              lossReasons:
                type: array
                items:
                  type: object
        lossReasons:
          type: array
          items:
            type: object
          description: Losses in the period by reason.
        products:
          type: object
          description: Products of the cards won in the period.
  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.