---
title: "Get sequence performance analytics"
description: "Returns workspace-wide sequence analytics for the requested lookback window."
---

> 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 › Analytics

`GET /api/workspaces/{workspaceId}/sequence-analytics`

Returns workspace-wide sequence analytics for the requested lookback window.

## Authentication

Requires one of the following:

- `ApiKeyAuth`, apiKey, in header, header `X-API-Key`, format `API_KEY`
- `BearerAuth`, http, header `Authorization`, format `JWT`

## Path parameters

- `workspaceId` (`get/api/workspaces/workspaceId/sequence-analytics.path.workspaceId`; string, required) — Workspace ID.

## Query parameters

- `days` (`get/api/workspaces/workspaceId/sequence-analytics.query.days`; integer, optional) — Number of days to include.
  - default `30`
- `timeframe` (`get/api/workspaces/workspaceId/sequence-analytics.query.timeframe`; string, optional) — Legacy timeframe string. Used only when days is not provided.
  - example `"7d"`

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/workspaces/<workspaceId>/sequence-analytics';
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>/sequence-analytics"

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

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

print(response.text)
```

## Responses

### 200

Sequence analytics returned successfully.

### 400

Invalid analytics request.

### 401

Authentication required

#### Example

```json
{
  "error": "Authentication required",
  "success": false
}
```

- `error` (`get/api/workspaces/workspaceId/sequence-analytics.response.401.error`; string, optional)
  - example `"Authentication required"`
- `success` (`get/api/workspaces/workspaceId/sequence-analytics.response.401.success`; boolean, optional)
  - example `false`

### 500

Internal server error

#### Example

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

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

### 504

Analytics query timed out.


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