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

# List Workflows

> List all workflows in your organization.

Retrieve a paginated list of workflows registered for your organization.

## Endpoint

```
GET /v1/accounts/:accountId/workflows
```

## Authentication

**Bearer token** required.

## Query Parameters

<ParamField query="limit" type="number" default="50">
  Number of workflows to return. Maximum `100`.
</ParamField>

<ParamField query="offset" type="number" default="0">
  Number of workflows to skip.
</ParamField>

<ParamField query="search" type="string">
  Case-insensitive partial match on workflow name.
</ParamField>

## Response

<ResponseField name="workflows" type="WorkflowRegistration[]" href="/types/workflows#workflowregistration">
  Array of workflow objects.
</ResponseField>

<ResponseField name="total" type="number">
  Total number of workflows.
</ResponseField>

<ResponseField name="limit" type="number">
  The limit used.
</ResponseField>

<ResponseField name="offset" type="number">
  The offset used.
</ResponseField>

## Example

<CodeGroup>
  ```bash curl theme={null}
  curl "https://api.collab-kit.com/v1/accounts/${ACCOUNT_ID}/workflows?limit=10" \
    -H "Authorization: Bearer ${TOKEN}"
  ```

  ```typescript JavaScript theme={null}
  const res = await fetch(`https://api.collab-kit.com/v1/accounts/${accountId}/workflows?limit=10`, {
    headers: { 'Authorization': `Bearer ${token}` },
  });
  const { data } = await res.json();
  ```
</CodeGroup>

```json Response theme={null}
{
  "type": "response",
  "success": true,
  "description": "Workflows retrieved",
  "data": {
    "workflows": [
      {
        "id": "wf_abc123",
        "organization_id": "a1b2c3d4-...",
        "name": "Welcome message",
        "code": "export default async function(event, { store, room }) { ... }",
        "events": ["participant.joined"],
        "room_id": null,
        "enabled": true,
        "created_at": "2026-05-29T10:00:00.000Z",
        "updated_at": "2026-05-29T10:00:00.000Z"
      }
    ],
    "total": 1,
    "limit": 10,
    "offset": 0
  },
  "error": null
}
```
