---
title: "Alerts"
method: GET
path: "/workspaces/{workspace_id}/alerts"
tags: ["alerts"]
---

# Alerts

`GET /workspaces/{workspace_id}/alerts`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/workspaces/{workspace_id}/alerts`
- Auth: none declared
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/workspaces/:workspace_id/alerts/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a list of existing alerts

## Response `200`

Successful operation.

- ModelsAlert[]
  - `errors` ModelsAlertError[]
    - `code` string
    - `message` string
  - `id` integer
  - `object_type` integer
  - `project_id` integer
  - `receiver_groups` string
  - `receiver_roles` string
  - `receiver_users` string
  - `receivers` integer
  - `source_kind` string
  - `threshold` integer
  - `threshold_type` string
  - `thresholds` string: using pq types is a workaround to enable reading postgres arrays into go types we should wrap these pq types to avoid polluting our domain
  - `wid` integer

## Other responses

- `500`: Internal Server Error

---

[API](https://skmtc.dev/toggl/apis/toggl-api.md) - [All operations](https://skmtc.dev/toggl/apis/toggl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toggl/apis/toggl-api/revisions/3085aee16990?raw)
