---
url: https://docs.puppetflow.com/reference/api/flows.md
---
# Flows & Folders

## List flows

```http
GET /flows
```

Returns flows accessible by the authenticated user.

### Query parameters

| Param | Type | Description |
| --- | --- | --- |
| `search` | string | Search by name, description, or ID. |
| `name` | string | Filter by flow name. |
| `type` | `code` | `nodal` | Filter by flow type. `flow_type` is accepted as an alias. |
| `folder_id` | string | Filter by folder ID (`fld_...`). |
| `limit` | integer | Maximum results, from 1 to 100. Default: 50. |

### Response `200`

```json
[
  {
    "id": "flow_k8Zt3xQ9mA2f",
    "name": "Invoice scraper",
    "description": "Scrapes invoices from the vendor portal.",
    "flow_type": "code",
    "folder_id": "fld_R7mP2qX9vK4c",
    "workspace_folder_id": null,
    "is_published": true,
    "queue_index": null,
    "default_inputs": null,
    "updated_at": "2026-03-15T10:30:00Z"
  }
]
```

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Flow ID (`flow_...`). |
| `name` | string | Flow name. |
| `description` | string | null | Flow description. |
| `flow_type` | `code` | `nodal` | Flow type. |
| `folder_id` | string | null | Personal parent folder ID. |
| `workspace_folder_id` | string | null | Workspace or team parent folder ID. |
| `is_published` | boolean | Whether the flow is published. |
| `queue_index` | integer | null | Queue lane index when queued execution is enabled. |
| `default_inputs` | object | null | Default input values used when triggering the flow. |
| `updated_at` | datetime | Last update timestamp. |

***

## Search flows

```http
GET /flows/search
```

Alias of `GET /flows`. It accepts the same filters and returns the same response.

***

## Get a flow

```http
GET /flows/{id}
```

Returns the current definition and settings of a flow accessible to the authenticated user.

### Errors

| Code | Description |
| --- | --- |
| `403` | API key lacks permission for this flow. |
| `404` | Flow not found. |

***

## Trigger a flow

```http
POST /flows/{id}/trigger
```

Dispatches a new run and returns immediately. `{id}` is the flow ID.

### Request body&#x20;

Any JSON object, merged into `$input` as flow input.

```json
{
  "url": "https://example.com",
  "username": "user@example.com"
}
```

### Response `202`

```json
{
  "run_id": 42,
  "flow_id": "flow_k8Zt3xQ9mA2f",
  "status": "pending"
}
```

| Field | Type | Description |
| --- | --- | --- |
| `run_id` | integer | ID of the newly created run. |
| `flow_id` | string | Flow ID. |
| `status` | string | Always `"pending"` on trigger. |

Poll `GET /flows/{id}/runs/{run_id}` to check completion.

### Errors

| Code | Description |
| --- | --- |
| `403` | API key lacks permission, the flow has no published version, or its repository source is unavailable. |
| `404` | Flow not found. |
| `429` | Run quota reached. The response uses a `message` field. |

***

## List folders

```http
GET /folders
```

Returns folders for the authenticated user.

### Query parameters

| Param | Type | Description |
| --- | --- | --- |
| `search` | string | Search by folder name. |

### Response `200`

```json
[
  {
    "id": "fld_R7mP2qX9vK4c",
    "name": "Production",
    "parent_id": null,
    "is_shared": true
  }
]
```

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Folder ID (`fld_...`). |
| `name` | string | Folder name. |
| `parent_id` | string | null | Parent folder ID (`null` for root folders). |
| `is_shared` | boolean | Whether the folder is shared with the workspace. |
