---
title: "Get workflow trigger counts or detailed analytics"
description: "Counts mode reads precomputed hourly summaries. Unrefreshed counts and refreshed_at are null. Detailed mode reads execution history. Any supplied resource ID must be a hyphenated UUID string on the signed-in path."
---

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

`GET /api/triggers/analytics`

Counts mode reads precomputed hourly summaries. Unrefreshed counts and refreshed_at are null. Detailed mode reads execution history. Any supplied resource ID must be a hyphenated UUID string on the signed-in path.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Query parameters

- `workspace_id` (`get/api/triggers/analytics.query.workspace_id`; string, required)
- `mode` (`get/api/triggers/analytics.query.mode`; string, optional)
  - one of `"counts"`

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.channelautomation.com/api/triggers/analytics?workspace_id=string' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/triggers/analytics?workspace_id=string';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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/triggers/analytics?workspace_id=string"

headers = {"Authorization": "Bearer <token>"}

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

print(response.text)
```

## Responses

### 200

success and data array containing trigger_id, event_type, is_active, execution/contact counts, last_execution_at, and refreshed_at in counts mode

### 400

Missing workspace

### 401

Authentication required

### 403

Workspace access denied

### 500

Analytics request failed

### 503

Membership or resource lookup unavailable


Source: https://developer.channelautomations.com/api/get-api-triggers-analytics/index.md
