---
title: "Top failure messages"
method: GET
path: "/v1/insights/errors"
tags: ["Insights"]
---

# Top failure messages

`GET /v1/insights/errors`

Groups failed tests by their status message and returns the most common failures with occurrence counts. Always operates on failed tests, so the `status` filter is ignored. Paginated with offset/count.

## Query parameters

- `start` string
- `end` string
- `time_range` string
- `status` 'all' | 'success' | 'failure' | 'unknown'
- `browser` integer[]
- `build` integer[]
- `group_ids` integer[]
- `team` integer[]
- `name` string
- `offset` integer
- `count` integer

## Response `200`

Top failure messages

- TestingbotEntitiesInsightErrorList — Testingbot_Entities_InsightErrorList model
  - `data` TestingbotEntitiesInsightError[], required — Error groups, most frequent first.
    - `error` string, required — Failure/status message.
    - `count` integer, required — Number of failed tests with this message.
  - `meta` TestingbotEntitiesInsightErrorMeta, required
    - `start` string, date-time, required — Period start (ISO-8601, UTC).
    - `end` string, date-time, required — Period end (ISO-8601, UTC).
    - `total_failures` integer, required — All failed tests in the period (including empty messages).
    - `distinct_errors` integer, required — Number of distinct failure messages.
    - `offset` integer, required — Items skipped.
    - `count` integer, required — Items returned in this page.

## Other responses

- `400` — Invalid parameters
- `401` — Authentication required
- `403` — Permission denied

---

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