---
title: "List chatActivities"
method: GET
path: "/chatActivities"
tags: ["chatActivities"]
---

# List chatActivities

`GET /chatActivities`

## Query parameters

- `status` 'closed' | 'assigned' | 'unassigned'
- `assignee` string
- `groupAssignee` string
- `statusReason` string
- `description` string
- `patient` string
- `lastMessage` string
- `previousAssignee` string
- `patientGlobalSearch` string
- `user` string
- `deleted` 0 | 1
- `createdBy` string
- `updatedBy` string
- `createdAt` string, date-time
- `updatedAt` string, date-time
- `page` integer
- `limit` integer
- `_populate` string
- `_select` string

## Response `200`

List of chatActivities

- object
  - `response` ChatActivityResponse[], required
    - `_id` string — Luma's internal ID of an object.
    - `user` string — The ID of the root account user.
    - `deleted` 0 | 1 — Flag for logical deletion where 1 means deleted.
    - `createdBy` string — The ID of the user who created this object.
    - `updatedBy` string — The ID of the user who updated this object.
    - `createdAt` string, date-time — The date/time when this object was created.
    - `updatedAt` string, date-time — The date/time when this object was updated.
    - `patient` object — Patient
      - `_id` string — The ID of patient.
      - `isOnline` boolean — Patient is online or not.
      - `isOnTelehealthSession` boolean — Patient is on telehealth session or not.
    - `lastMessage` string — ID of Message
    - `status` 'closed' | 'assigned' | 'unassigned' — status
    - `assignee` object — Assignee
      - `_id` string — The ID of user.
      - `isOnline` boolean — User is online or not.
      - `isOnTelehealthSession` boolean — User is on telehealth session or not.
    - `groupAssignee` string — ID of Group
    - `previousAssignee` string — ID of User
    - `previousGroupAssignee` string — ID of Group
    - `statusReason` string — ID of a ChatActivityStatusReason, only used when status is "closed"
    - `description` string — Additional description of the statusReason. Some ChatActivityStatusReasons require a description.
    - `facilities` string[] — List of facilities where the patient linked to this chatActivity has appointments.
    - `priorityUpdatedAt` string, date-time — This date/time changes only when the chat is assigned or the patient gets a messsage. It can be used to sort the chatActivities on screen.
    - `lastIrregularAt` string, date-time — Indicates the last time an unexpected message was sent in the chat. An example is when patient gets an automated appointment reminder requesting to answer YES to confirm or NO to cancel, and patient replies with a completely different message.
    - `automated` boolean — Indicates if this chatActivity was created as a consequence of an automated message being sent out, such as an appointment reminder.
  - `page` integer, required
  - `size` integer, required

## Other responses

- `401` — Not authenticated
- `403` — Access token does not have the required scope

---

[API](https://skmtc.net/lumahealth/apis/rest-service.md) · [All operations](https://skmtc.net/lumahealth/apis/rest-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lumahealth/rest-service/revisions/d3c75c2a2f1d/schema)
