---
title: "Get error events"
method: POST
path: "/dashboard/api/errors"
tags: ["Dashboard"]
---

# Get error events

`POST /dashboard/api/errors`

## Request

- Base URL: `https://api.agnost.ai`
- URL: `https://api.agnost.ai/dashboard/api/errors`
- Auth: one of:
  - HTTP bearer and API key in header `x-org-id`
  - API key in header `x-api-key`

## Request body

- object
  - `time_range` '1min' | '1h' | '1d' | '1w' | '1m' | 'all'
  - `connection_type` union
    - string
    - string[]
  - `agent_name` union
    - string
    - string[]
  - `metadata_filters` object[]
    - `key` string
    - `value` string
  - `page` integer
  - `page_size` integer
  - `severity` 'all' | 'critical' | 'non_critical'

## Response `200`

Error statistics and up to the newest 1,000 matching events; Critical uses error_events, Non-critical uses filtered event rows, and All merges both

- object
  - `recent_errors` object[]
    - `event_id` string
    - `event_type` string
    - `event_name` string
    - `timestamp` string, date-time
    - `latency` integer
    - `error_message` string
  - `recent_errors_truncated` boolean: True only when more than 1,000 events match the request filters

## Changes

- **2026-11-03** `a61431b48f36`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agnost/apis/agnost-ai-api/changes/dashboard/api/errors/post.md)

---

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