---
title: "List incidents"
method: GET
path: "/v1/recovery/incidents"
tags: ["Disaster Recovery"]
---

# List incidents

`GET /v1/recovery/incidents`

## Request

- Base URL: `https://api.subscriby.net`
- URL: `https://api.subscriby.net/v1/recovery/incidents`
- Auth: HTTP bearer

```bash
curl "https://api.subscriby.net/v1/recovery/incidents?status=open" \
  -H "Authorization: Bearer $SUBSCRIBY_TOKEN"
```

An incident is one problem a probe detected and has not yet seen fixed: the creator's sign-in account unreachable (`kind: account`), a project's bot refused by the platform (`bot`), or a channel or group the project sells gone or no longer administered (`resources`). It resolves itself when a later probe finds the thing healthy, or is resolved by the recovery that replaced it, which `resolved_by_operation_id` then names.

`status` is `open` (the default: what still needs attention), `resolved`, or `all`. Paginated like every list, newest first by `detected_at`; `sort_by` also accepts `kind`, `status` and `resolved_at`.

## Query parameters

- `status` 'open' | 'resolved' | 'all': Which recovery incidents a list shows. `Open` is what still needs attention, so it is the default: an integration polling the list wants the problems, not the archive. `Resolved` is the record of what healed or was fixed; `All` is both.
- `page` integer
- `per_page` integer
- `sort_by` string
- `sort_direction` 'asc' | 'desc'

## Response `200`

The page, newest first by default.

- object
  - `data` RecoveryIncidentResource[], required: The items on this page.
    - `id` string, required: The incident's id.
    - `kind` string, required: `account` (the creator's sign-in account unreachable), `bot` (a project's bot refused by the platform) or `resources` (a channel or group the project sells gone or no longer administered).
    - `kind_label` string, required: The kind in the connector's own words, in the creator's language.
    - `status` string, required: `open` while the problem stands, `resolved` once a later probe found the thing healthy or a recovery replaced it.
    - `status_label` 'Open' | 'Resolved', required: The status in the creator's language.
    - `connector` string, nullable, required: The connector the incident is on, by key; null when it concerns no connector.
    - `project_id` string, nullable, required: The project concerned; null on an account incident.
    - `project_name` string, nullable, required: That project's name, so an integration can say which project without another call; null on an account incident.
    - `resource_id` string, nullable, required: The resource concerned; set on `resources` incidents only.
    - `resource_title` string, nullable, required: That resource's title; set on `resources` incidents only.
    - `reason` string, nullable, required: The connector's own code for what it saw, such as `chat_not_found`, `bot_removed`, `bot_not_administrator`, `bot_missing_rights` or `connector_api_error`; null when the probe recorded no reason, as on account incidents.
    - `reason_label` string, nullable, required: That code in the connector's words; null when no reason was recorded.
    - `reason_explanation` string, nullable, required: The connector's explanation of the code, the same sentence the alert email carried, in Markdown; null when no reason was recorded.
    - `detected_at` string, required: When the probe first saw the problem, ISO 8601.
    - `resolved_at` string, nullable, required: When the problem was seen fixed, ISO 8601; null while open.
    - `resolved_by_operation_id` string, nullable, required: The recovery that fixed it, when one did; null otherwise.
  - `links` object, required: Links to the first, last, previous and next pages.
    - `first` string, nullable, required: The first page's URL.
    - `last` string, nullable, required: The last page's URL.
    - `prev` string, nullable, required: The previous page's URL; null on the first page.
    - `next` string, nullable, required: The next page's URL; null on the last page.
  - `meta` object, required: The paging counters for this page.
    - `current_page` integer, required: The page returned, 1-indexed.
    - `from` integer, nullable, required: The 1-indexed position of this page's first item across every page; null when the page is empty.
    - `last_page` integer, required: How many pages there are.
    - `links` object[], required: Generated paginator links.
      - `url` string, nullable, required: The page's URL; null for the ellipsis and the disabled arrows.
      - `label` string, required: The link's label: a page number, the previous or next arrow, or an ellipsis.
      - `active` boolean, required: Whether this link is the current page.
    - `path` string, nullable, required: Base path for paginator generated URLs.
    - `per_page` integer, required: Number of items shown per page.
    - `to` integer, nullable, required: Number of the last item in the slice.
    - `total` integer, required: Total number of items being paginated.

## Other responses

- `401`: `AUTHENTICATION_REQUIRED`: the request carries no bearer token, or one that is revoked, malformed, or minted for another environment (an `sbt_test_` token on production).
- `403`: `TOKEN_MISSING_ABILITY`: the token is valid but does not carry the ability this endpoint requires; `error.context.required_ability` names the one to grant. An endpoint that also checks who owns a row or which tier the account is on answers `FORBIDDEN`, `TEAM_TIER_REQUIRED` or `CONNECTOR_TIER_REQUIRED` with the same status, and says so in its own description.
- `422`: `VALIDATION_FAILED`: the payload broke a rule, and `error.fields` maps each offending key to its messages. A refusal from the domain, such as a plan that cannot go on sale or a member who cannot be removed, uses the same code with `error.message` saying why and no `fields`. On this endpoint: `VALIDATION_FAILED`: when `status` is not `open`, `resolved` or `all`.
- `429`: `RATE_LIMITED`: the token has spent its 300 requests a minute or 10,000 an hour; `Retry-After` says when the next one is accepted.

---

[API](https://skmtc.dev/memberpass/apis/subscriby-rest-api.md) · [All operations](https://skmtc.dev/memberpass/apis/subscriby-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/memberpass/apis/subscriby-rest-api/revisions/59c4df91d764?raw)
