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

# GET /v1/workflows/counts

Get workflow counts grouped by status (filter-aware).

` GET /v1/workflows/counts `

Get workflow counts grouped by status (filter-aware).

## Parameters

### ` q ` (query, optional)

Search in name + description (ILIKE, max 256 chars)

- ` value `: type ` string `

### ` type ` (query, optional)

Filter by trigger type

- ` value `: type ` string `

### ` actions ` (query, optional)

Filter by node types (any-match, max 50)

- ` value `: type ` array `

  - ` array item `: type ` string `

### ` connectors ` (query, optional)

Filter by connector types (any-match, max 50)

- ` value `: type ` array `

  - ` array item `: type ` string `

### ` owner ` (query, optional)

Owner scope: yours | org | public | all (everything visible to the caller). Omit for unfiltered; any other value is rejected with 400.

- ` value `: type ` string `

### ` madeByMe ` (query, optional)

Restrict to workflows created_by the caller

- ` value `: type ` boolean `

## Responses

### ` 200 ` — OK

Content type: ` application/json `

- ` value `: type ` object `

  - ` code `: type ` integer `

    - example: ` 0 `

  - ` data `: type ` object `

    - ` active `: type ` integer `

    - ` archived `: type ` integer `

    - ` availableConnectors `: type ` array `

      - ` array item `: type ` string `

    - ` availableTypes `: type ` array ` — AvailableTypes / AvailableConnectors are the distinct trigger-type and connector-type values that exist in the org's workflows under the current filter context (ignoring status — same scope as the counts above). Frontend uses these to populate the filter-panel dropdowns so users can pick from every option in the full result set, not just the current visible page.

      - ` array item `: type ` string `

    - ` draft `: type ` integer `

    - ` paused `: type ` integer `

    - ` total `: type ` integer `

  - ` message `: type ` string `

    - example: ` "success" `

  - ` requestId `: type ` string `

    - example: ` "abc-123" `

## Request examples

### cURL

```curl
curl -X GET 'https://api.example.com/v1/workflows/counts' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('https://api.example.com/v1/workflows/counts', {
  method: 'GET',
  headers: {
      "Authorization": "Bearer YOUR_API_TOKEN"
  }
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN'
}

response = requests.get('https://api.example.com/v1/workflows/counts', headers=headers)
print(response.json())
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://api.example.com/v1/workflows/counts", nil)
	req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")

	resp, _ := http.DefaultClient.Do(req)
	defer resp.Body.Close()
	result, _ := io.ReadAll(resp.Body)
	fmt.Println(string(result))
}
```