---
title: "Read trigger history"
---

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

# Read trigger history

Path: CloudRaker Workspace API › Workspace Triggers

`GET /triggers/{triggerId}/runs`

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `triggerId` (`listTriggerRuns.path.triggerId`; string, required)
  - maxLength 128; pattern `^trg_[A-Za-z0-9_-]+$`

## Query parameters

- `limit` (`listTriggerRuns.query.limit`; integer, optional)
  - min 1; max 100; default `50`
- `cursor` (`listTriggerRuns.query.cursor`; string, optional)
  - maxLength 128

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/triggers/<triggerId>/runs' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/triggers/<triggerId>/runs';
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.cloudraker.com/triggers/<triggerId>/runs"

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

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

print(response.text)
```

## Responses

### 200

One page of trigger runs.

#### Example

```json
{
  "data": [
    {
      "status": "opened",
      "sessionId": "string",
      "message": "string",
      "id": "string",
      "triggerId": "string",
      "kind": "schedule",
      "receivedAt": "2019-08-24T14:15:22Z",
      "completedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "nextCursor": "string"
}
```

- `data` (`listTriggerRuns.response.200.data`; array<object>, required)
  - `status` (`listTriggerRuns.response.200.data.status`; string, required)
    - one of `"opened"`, `"busy"`, `"needs_input"`, `"blocked"`, `"error"`
  - `id` (`listTriggerRuns.response.200.data.id`; string, required)
  - `triggerId` (`listTriggerRuns.response.200.data.triggerId`; string, required)
    - maxLength 128; pattern `^trg_[A-Za-z0-9_-]+$`
  - `kind` (`listTriggerRuns.response.200.data.kind`; string, required)
    - one of `"schedule"`, `"webhook"`, `"email"`, `"manual"`
  - `receivedAt` (`listTriggerRuns.response.200.data.receivedAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `completedAt` (`listTriggerRuns.response.200.data.completedAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `sessionId` (`listTriggerRuns.response.200.data.sessionId`; string, optional)
    - minLength 1; maxLength 128
  - `message` (`listTriggerRuns.response.200.data.message`; string, optional)
    - maxLength 1000
- `nextCursor` (`listTriggerRuns.response.200.nextCursor`; string | null, required)

### 400

`validation_failed`: a request parameter or body field is invalid.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`listTriggerRuns.response.400.error`; string, required) — The sentence a human reads.
- `error_code` (`listTriggerRuns.response.400.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`listTriggerRuns.response.400.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`listTriggerRuns.response.400.issues.path`; string, required)
  - `code` (`listTriggerRuns.response.400.issues.code`; string, required)
  - `message` (`listTriggerRuns.response.400.issues.message`; string, required)

### 404

`not_found` — No such trigger, or the caller may not see it.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`listTriggerRuns.response.404.error`; string, required) — The sentence a human reads.
- `error_code` (`listTriggerRuns.response.404.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`listTriggerRuns.response.404.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`listTriggerRuns.response.404.issues.path`; string, required)
  - `code` (`listTriggerRuns.response.404.issues.code`; string, required)
  - `message` (`listTriggerRuns.response.404.issues.message`; string, required)


Source: https://docs.cloudraker.com/workspace/api/workspace-triggers/list-trigger-runs/index.md
