---
title: "List error logs for a workspace"
description: "Returns paginated error logs with optional filters for category, severity, and resolution status"
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › ErrorLogs

`GET /api/workspaces/{workspaceId}/error-logs`

Returns paginated error logs with optional filters for category, severity, and resolution status

## Authentication

- `ApiKeyAuth`, apiKey, in header, header `X-API-Key`, format `API_KEY`

## Path parameters

- `workspaceId` (`get/api/workspaces/workspaceId/error-logs.path.workspaceId`; string, required)

## Query parameters

- `category` (`get/api/workspaces/workspaceId/error-logs.query.category`; string, optional)
  - one of `"message"`, `"flow_execution"`, `"inbound"`
- `subcategory` (`get/api/workspaces/workspaceId/error-logs.query.subcategory`; string, optional)
- `severity` (`get/api/workspaces/workspaceId/error-logs.query.severity`; string, optional)
  - one of `"warning"`, `"error"`, `"critical"`
- `is_resolved` (`get/api/workspaces/workspaceId/error-logs.query.is_resolved`; string, optional)
  - one of `"true"`, `"false"`
- `limit` (`get/api/workspaces/workspaceId/error-logs.query.limit`; integer, optional)
  - default `50`
- `offset` (`get/api/workspaces/workspaceId/error-logs.query.offset`; integer, optional)
  - default `0`

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.channelautomation.com/api/workspaces/<workspaceId>/error-logs' \
  --header 'X-API-Key: <X-API-Key>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/workspaces/<workspaceId>/error-logs';
const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/workspaces/<workspaceId>/error-logs"

headers = {"X-API-Key": "<X-API-Key>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Paginated error logs

### 500

Internal server error

#### Example

```json
{
  "error": "Internal server error",
  "details": "string",
  "success": false
}
```

- `error` (`get/api/workspaces/workspaceId/error-logs.response.500.error`; string, optional)
  - example `"Internal server error"`
- `details` (`get/api/workspaces/workspaceId/error-logs.response.500.details`; string, optional)
- `success` (`get/api/workspaces/workspaceId/error-logs.response.500.success`; boolean, optional)
  - example `false`


Source: https://developer.channelautomations.com/api/get-api-workspaces-workspace-id-error-logs/index.md
