# flow2act · Search flows

Find flows by keywords or optional AI query expansion.

If AI is unavailable or limited, search falls back to keywords and returns degraded: true. Keys use GET /v1/flows instead.

AI is disabled by default per organization and environment. An administrator must explicitly enable external AI processing under Organization → Privacy. Never include credentials or confidential personal information. Local keyword search remains available with smart=false.

## POST /v1/flows/search

Authentication: FLOW2ACT_ACCESS_TOKEN from flow2act sign-in
Required tenant header: X-Organization-Id.
Required user permissions: Active workspace membership required. The API checks current membership, roles, key scopes and resource permissions on every request. Documentation visibility grants no access.

## Input parameters
- query (string, required): min length 2 · max length 200
- smart (boolean, optional): default false

## Request example (replace example IDs)

```sh
curl -X POST "https://api.flow2act.com/v1/flows/search" \
  -H "authorization: Bearer $FLOW2ACT_ACCESS_TOKEN" \
  -H "x-organization-id: 10000000-0000-4000-8000-000000000001" \
  -H "content-type: application/json" \
  --data-raw '{
  "query": "production deployment approval",
  "smart": true
}'
```

## Response excerpt

```json
{
  "items": [],
  "terms": [
    "deployment"
  ],
  "mode": "keyword",
  "degraded": true
}
```

Source: /docs/search-flows
Full schemas: /docs/openapi.json
