---
updatedAt: 2026-06-25T09:09:19.000Z
agentTools:
  projectIndex: https://integrations.luscii.com/llms.txt
---

# List alerts

Returns a paginated list of alerts in the organization.

Accessible by `HC_ADMIN` and `HC_VIEW_ALL`.

### The alert object

| Field           | Type             | Description                                                                                                                                                             |
| :-------------- | :--------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`            | UUID             | Alert's identifier                                                                                                                                                      |
| `userId`        | UUID             | Identifier of the patient who triggered the alert                                                                                                                       |
| `groupId`       | UUID             | Identifier of the group the alert belongs to                                                                                                                            |
| `protocolId`    | UUID \| null     | Protocol associated with the alert, if any                                                                                                                              |
| `programId`     | UUID \| null     | Program associated with the alert, if any                                                                                                                               |
| `measurementId` | UUID \| null     | Measurement that triggered the alert, if any                                                                                                                            |
| `instrumentId`  | UUID \| null     | Instrument associated with the alert, if any                                                                                                                            |
| `type`          | string           | What triggered the alert. One of `mea` (measurement threshold exceeded), `rem` (patient remark), `ovd` (overdue measurement), `combination` (combination of thresholds) |
| `flag`          | string           | Severity of the alert. One of `red`, `orange`, `gray`                                                                                                                   |
| `status`        | string           | Current status of the alert. One of `open`, `processed`, `escalated`                                                                                                    |
| `processedAt`   | ISO 8601 \| null | Date and time the alert was processed                                                                                                                                   |
| `processedBy`   | UUID \| null     | Identifier of the user who processed the alert                                                                                                                          |
| `escalatedAt`   | ISO 8601 \| null | Date and time the alert was escalated                                                                                                                                   |
| `escalatedBy`   | UUID \| null     | Identifier of the user who escalated the alert                                                                                                                          |
| `createdAt`     | ISO 8601         | Date and time the alert was created                                                                                                                                     |
| `updatedAt`     | ISO 8601         | Date and time the alert was last updated                                                                                                                                |

<br />

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Public API reference",
    "description": "Full list of available endpoints.",
    "version": "1.0"
  },
  "paths": {
    "/v1/alerts": {
      "get": {
        "tags": [
          "Alerts"
        ],
        "summary": "List alerts",
        "description": "Returns a paginated list of alerts in the organization.",
        "operationId": "e27c5525c31bfb283a7043cf482db102",
        "parameters": [
          {
            "$ref": "#/components/parameters/startDate",
            "description": "Retrieve alerts with a createdAt on or after this date."
          },
          {
            "$ref": "#/components/parameters/endDate",
            "description": "Retrieve alerts with a createdAt on or before this date."
          },
          {
            "$ref": "#/components/parameters/PaginationCursor"
          },
          {
            "$ref": "#/components/parameters/PaginationPageSize"
          }
        ],
        "responses": {
          "200": {
            "description": "Success response if everything works",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "meta",
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "description": "Paginated data",
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AlertTransformer"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/PaginationData"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "500": {
            "description": "Internal error"
          }
        },
        "x-validator_exception": "TMAValidationException"
      }
    }
  },
  "components": {
    "schemas": {
      "PaginationData": {
        "properties": {
          "perPage": {
            "description": "Number of results per page",
            "type": "integer",
            "default": 50
          },
          "nextCursor": {
            "description": "Pagination cursor to be used to fetch next results",
            "type": [
              "string",
              "null"
            ],
            "example": "eyJBbGVyd..."
          },
          "nextPageUrl": {
            "description": "Url to be used to fetch next results",
            "type": [
              "string",
              "null"
            ],
            "example": "https://next.page/?cursor=eyJBbGVyd..."
          },
          "prevCursor": {
            "description": "Pagination cursor to be used to fetch previous results",
            "type": [
              "string",
              "null"
            ],
            "example": "eyJBbGVyd..."
          },
          "prevPageUrl": {
            "description": "Url to be used to fetch previous results",
            "type": [
              "string",
              "null"
            ],
            "example": "https://next.page/?cursor=eyJBbGVyd..."
          }
        },
        "type": "object"
      },
      "uuidSchema": {
        "type": "string",
        "format": "uuid",
        "example": "9890ed24-405d-4688-abcd-b7f829d75939"
      },
      "dateSchema": {
        "type": "string",
        "format": "date",
        "example": "2023-05-23"
      },
      "isoDateTimeSchema": {
        "description": "Date-time formatted to ISO8601. See https://www.rfc-editor.org/rfc/rfc3339#section-5.6",
        "type": "string",
        "format": "date-time",
        "example": "2024-09-17T15:45:00+02:00"
      },
      "AlertTransformer": {
        "description": "Updated Alert details",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/uuidSchema",
            "description": "Alert's identifier"
          },
          "groupId": {
            "$ref": "#/components/schemas/uuidSchema",
            "description": "Alert group's identifier"
          },
          "protocolId": {
            "description": "Protocol identifier, if any",
            "oneOf": [
              {
                "$ref": "#/components/schemas/uuidSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "userId": {
            "$ref": "#/components/schemas/uuidSchema",
            "description": "Patient identifier"
          },
          "measurementId": {
            "description": "Measurement identifier, if any",
            "oneOf": [
              {
                "$ref": "#/components/schemas/uuidSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "programId": {
            "description": "Program identifier, if any",
            "oneOf": [
              {
                "$ref": "#/components/schemas/uuidSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "instrumentId": {
            "description": "Instrument identifier, if any",
            "oneOf": [
              {
                "$ref": "#/components/schemas/uuidSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "flag": {
            "description": "Flag value that triggered the alert"
          },
          "processedAt": {
            "description": "The date and time when the alert was processed.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/isoDateTimeSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "processedBy": {
            "description": "User who processed the alert",
            "oneOf": [
              {
                "$ref": "#/components/schemas/uuidSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "escalatedAt": {
            "description": "The date and time when the alert was escalated.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/isoDateTimeSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "escalatedBy": {
            "description": "User who escalated the alert",
            "oneOf": [
              {
                "$ref": "#/components/schemas/uuidSchema"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "$ref": "#/components/schemas/isoDateTimeSchema",
            "description": "The date and time when the alert was created."
          },
          "updatedAt": {
            "$ref": "#/components/schemas/isoDateTimeSchema",
            "description": "The date and time when the alert was last updated."
          },
          "type": {
            "description": "Alert type identifier",
            "type": "string"
          },
          "status": {
            "description": "Flag status after the update",
            "type": "string",
            "enum": [
              "open",
              "processed",
              "escalated"
            ]
          }
        },
        "type": "object"
      }
    },
    "responses": {
      "Unprocessable": {
        "description": "Unprocessable entity, i.e. Validation error",
        "x-statusCode": "422"
      }
    },
    "parameters": {
      "PaginationCursor": {
        "name": "cursor",
        "in": "query",
        "description": "Cursor to paginate the results",
        "schema": {
          "type": "string"
        }
      },
      "PaginationPageSize": {
        "name": "perPage",
        "in": "query",
        "description": "Number of items per page",
        "schema": {
          "type": "integer",
          "default": 50,
          "maximum": 200,
          "minimum": 1
        }
      },
      "startDate": {
        "name": "startDate",
        "in": "query",
        "description": "Start date for requested data.",
        "schema": {
          "$ref": "#/components/schemas/dateSchema"
        }
      },
      "endDate": {
        "name": "endDate",
        "in": "query",
        "description": "End date for requested data.",
        "schema": {
          "$ref": "#/components/schemas/dateSchema"
        }
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "description": "Bearer token. Just enter the token itself without 'Bearer' keyword",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "bearer": []
    }
  ],
  "tags": [
    {
      "name": "Alerts",
      "description": "Get the alerts for the given patient or group per health care"
    }
  ],
  "externalDocs": {
    "description": "General Public API Documentation",
    "url": "https://integrations.luscii.com/docs/public-api"
  },
  "servers": [
    {
      "url": "https://vitalsapi.luscii.com/"
    }
  ],
  "x-readme": {}
}
```