---
title: "List all session errors"
method: GET
path: "/session-errors"
tags: ["Session Errors"]
---

# List all session errors

`GET /session-errors`

## Request

- Base URL: `https://api.metorial.com`
- URL: `https://api.metorial.com/session-errors`
- Auth: HTTP bearer

Returns a paginated list of errors across all sessions.

## Query parameters

- `limit` number
- `after` string
- `before` string
- `cursor` string
- `order` 'asc' | 'desc'
- `type` union
  - 'message_processing_timeout' | 'message_processing_provider_error' | 'message_processing_system_error'
  - string[]
- `id` union
  - string
  - string[]
- `session_id` union
  - string
  - string[]
- `session_provider_id` union
  - string
  - string[]
- `session_connection_id` union
  - string
  - string[]
- `session_error_group_id` union
  - string
  - string[]
- `provider_run_id` union
  - string
  - string[]
- `provider_id` union
  - string
  - string[]
- `session_message_id` union
  - string
  - string[]
- `created_at` object
  - `gt` string, date-time: Only include records after this timestamp for session error creation time
  - `lt` string, date-time: Only include records before this timestamp for session error creation time
- `updated_at` object
  - `gt` string, date-time: Only include records after this timestamp for session error last update time
  - `lt` string, date-time: Only include records before this timestamp for session error last update time
- `search` string

## Headers

- `Metorial-Version` string

## Response `200`

Successful response

- SessionErrorList
  - `items` SessionError[], required
    - `object` 'session.error', required: String representing the object's type
    - `id` string, required: Unique session error identifier
    - `code` string, required: Error code
    - `message` string, required: Error message
    - `data` object, required: Error payload data
    - `status` 'processing' | 'processed', required: Indicates whether the error is still being processed or has been fully processed and grouped.
    - `session_id` string, required: Parent session ID
    - `provider_run_id` string, nullable, required: Provider run ID
    - `connection_id` string, nullable, required: Connection ID
    - `group_id` string, nullable, required: Error group ID
    - `similar_error_count` number, required: Count of similar errors in the group
    - `created_at` string, date-time, required: Timestamp when created
  - `pagination` object, required
    - `has_more_before` boolean, required
    - `has_more_after` boolean, required

## Other responses

- `400`: Invalid parameters or action
- `401`: Missing or invalid API key
- `403`: The key lacks permission for this resource
- `404`: No such resource
- `422`: Validation failed
- `429`: Rate limit exceeded
- `500`: Unexpected server error

---

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