Flow

List flow functions

GET
/flows/{flow}/functions

Returns the function index of the flow's current bundle: the files under src/ and the units (setup and functions) of each, as Flux's list builds them on deploy (Flux spec §5.1, §6). Every flow has one: a deploy whose code Flux can't index fails, and a flow without a bundle has an empty src directory. Same access as GET /flows/{flow}.

BearerAuth
headerAuthorizationBearer <JWT>

Admin token, API token issued via /api-tokens, or an OIDC JWT access token issued by the configured OIDC provider.

flow*string
Formatuuid

The flow's function index.

application/json
  1. response

The flow's function index: Flux's ProjectTree (spec §6.1), always the src directory.

kind*"dir"
Value in"dir"
name*string

The directory's own name.

text*string

Display string (Flux spec §6.4).

path*string

Canonical path (Flux spec §5.3).

children*array<|>

Directories first, then files, each by name (Flux spec §6.3).

Example Request
curl -X GET 'https://example.com/api/hub/flows/497f6eca-6276-4993-bfeb-53cbbbba6f08/functions'
Example Response
{  "kind": "dir",  "name": "util",  "text": "Util",  "path": "src/util",  "children": [    {}  ]}