> ## 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: Service users table

> The users table of the Service tab, with search, profile, presence and sorting.



## OpenAPI

````yaml /api-reference/openapi.en.yaml get /reports/dashboard/service/users
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/service/users:
    get:
      tags:
        - reports
      summary: 'Dashboard: Service users table'
      description: >-
        The users table of the Service tab, with search, profile, presence and
        sorting.
      parameters:
        - $ref: '#/components/parameters/dashboardDateStart'
        - $ref: '#/components/parameters/dashboardDateEnd'
        - $ref: '#/components/parameters/dashboardUsers'
        - $ref: '#/components/parameters/dashboardQueues'
        - $ref: '#/components/parameters/dashboardChannels'
        - $ref: '#/components/parameters/dashboardTimeMode'
        - $ref: '#/components/parameters/dashboardProfiles'
        - name: userSearch
          in: query
          description: Search by name (up to 80 characters).
          schema:
            type: string
        - name: presence
          in: query
          schema:
            type: string
            enum:
              - all
              - online
              - offline
            default: all
        - name: userOrderBy
          in: query
          schema:
            type: string
            enum:
              - name
              - profile
              - protocols
              - inService
              - transferred
              - finished
              - firstAnswer
              - responseTime
              - serviceTime
            default: protocols
        - name: userOrderDir
          in: query
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DashboardServiceUsers'
        '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`).
components:
  parameters:
    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'
    dashboardUsers:
      name: users
      in: query
      description: >-
        User ids (the `id` from `GET /users`), comma-separated. A user outside
        your company returns `404` (`ERR_API_USER_NOT_FOUND`).
      schema:
        type: string
      example: 3,8
    dashboardQueues:
      name: queues
      in: query
      description: >-
        Queue ids, separated by commas. An id that is not from your company
        returns `422` (`ERR_API_INVALID_REFERENCE`).
      schema:
        type: string
      example: '7'
    dashboardChannels:
      name: channels
      in: query
      description: >-
        Connection ids, comma-separated. An id outside your company returns
        `422` (`ERR_API_INVALID_REFERENCE`).
      schema:
        type: string
      example: '4'
    dashboardTimeMode:
      name: timeMode
      in: query
      description: >-
        `elapsed` counts elapsed time; `business` counts only each user's
        business hours.
      schema:
        type: string
        enum:
          - elapsed
          - business
        default: elapsed
    dashboardProfiles:
      name: profiles
      in: query
      description: Ids of the users' profiles, comma-separated.
      schema:
        type: string
      example: '2'
  schemas:
    DashboardServiceUsers:
      type: object
      description: Users table of the Service tab.
      properties:
        rows:
          type: array
          items:
            allOf:
              - $ref: '#/components/schemas/DashboardUserRef'
              - type: object
                properties:
                  profile:
                    type: string
                    example: Atendente
                  online:
                    type: boolean
                    example: true
                  protocols:
                    type: integer
                    description: >-
                      The protocols that went through the person in the period
                      (in service with them) or that they closed in it. Each one
                      falls in only one of the next three counts: `protocols` =
                      `inService` + `transferred` + `finished`.
                    example: 84
                  inService:
                    type: integer
                    description: >-
                      The ones in service with them (ticket `open`) at the end
                      of the period.
                    example: 5
                  transferred:
                    type: integer
                    description: >-
                      The ones that went through them and left them without
                      being closed by them: at the end of the period, neither in
                      service with them nor closed by them in the period
                      (transferred to another person, to the queue or to
                      automation).
                    example: 4
                  finished:
                    type: integer
                    description: The ones they closed in the period.
                    example: 75
                  firstAnswer:
                    type: number
                    description: >-
                      Median, in seconds, of the first response in each of this
                      person's segments: from the moment the protocol became
                      `open` with them (or from the contact's message, if it
                      came later) to their first response in the segment. It
                      also applies to whoever received it by transfer; it counts
                      the responses given in the period. With no measurement, 0.
                    example: 92
                  responseTime:
                    type: number
                    description: >-
                      Response time in seconds: in each protocol, the average of
                      this user's responses in the period; then, the median
                      across protocols.
                    example: 140
                  serviceTime:
                    type: number
                    description: >-
                      Service time in seconds: in each protocol, the sum of this
                      person's segments that went through the period, whole
                      (from the real start, even before the period) to their end
                      cut at the end of the period or now, only while the ticket
                      is `open` with them; then, the median across protocols.
                      Whoever transferred counts until the transfer.
                    example: 744
        total:
          type: integer
          description: >-
            Users who handled conversations in the period, before the table's
            own filters (search, profile and presence). It is filled even when
            those filters leave nobody in `rows`.
          example: 12
        online:
          type: integer
          description: How many of these users are online now.
          example: 7
    DashboardUserRef:
      type: object
      description: >-
        A user in the dashboard responses. `userId` is the id of the company
        membership (the `id` from `GET /users`). Users who left the company do
        not appear in the per-user lists; in open conversations, they appear
        with a null `userId`.
      properties:
        userId:
          type: integer
          nullable: true
          example: 3
        name:
          type: string
          example: Marina Alves
  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.