---
title: "List the legacy channels of this organization"
---

> 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.

# List the legacy channels of this organization

Path: CloudRaker Workspace API › Workspace Triggers

`GET /triggers/legacy-channels`

One keyset page of the surviving `channels` rows. Each row names the outcome it reached: `triggerId` once it became a trigger, `refusal` once it was archived instead, neither while it is still waiting. `limit` is 1-50 (default 25), `cursor` takes the previous response's `nextCursor`, and `status` narrows to `active` or `archived`.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Query parameters

- `cursor` (`listLegacyChannels.query.cursor`; string, optional)
  - maxLength 128
- `limit` (`listLegacyChannels.query.limit`; integer, optional)
  - min 1; max 50
- `status` (`listLegacyChannels.query.status`; string, optional)
  - one of `"active"`, `"archived"`, `"all"`

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

The producer page, proxied unchanged.

#### Example

```json
{
  "data": {
    "rows": [
      {
        "channelId": "string",
        "name": "string",
        "slug": "string",
        "type": "string",
        "status": "string",
        "address": "string",
        "createdAt": "string",
        "archivedAt": "string",
        "triggerId": "string",
        "refusal": "string"
      }
    ],
    "nextCursor": "string"
  }
}
```

- `data` (`listLegacyChannels.response.200.data`; object, required)
  - `rows` (`listLegacyChannels.response.200.data.rows`; array<object>, required)
    - `channelId` (`listLegacyChannels.response.200.data.rows.channelId`; string, required)
      - minLength 1; maxLength 200
    - `name` (`listLegacyChannels.response.200.data.rows.name`; string, required)
    - `slug` (`listLegacyChannels.response.200.data.rows.slug`; string, required)
    - `type` (`listLegacyChannels.response.200.data.rows.type`; string, required)
    - `status` (`listLegacyChannels.response.200.data.rows.status`; string, required)
    - `address` (`listLegacyChannels.response.200.data.rows.address`; string, required)
    - `createdAt` (`listLegacyChannels.response.200.data.rows.createdAt`; string, required)
    - `archivedAt` (`listLegacyChannels.response.200.data.rows.archivedAt`; string, required, nullable)
    - `triggerId` (`listLegacyChannels.response.200.data.rows.triggerId`; string, optional)
      - maxLength 128; pattern `^trg_[A-Za-z0-9_-]+$`
    - `refusal` (`listLegacyChannels.response.200.data.rows.refusal`; string, optional)
  - `nextCursor` (`listLegacyChannels.response.200.data.nextCursor`; string, required, nullable)

### 400

`validation_failed`: a query parameter is invalid.

#### Example

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

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

### 403

`forbidden` — organization administrators only.

#### Example

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

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


Source: https://docs.cloudraker.com/workspace/api/workspace-triggers/list-legacy-channels/index.md
