List flow functions
GET
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}.
BearerAuthheader
AuthorizationBearer <JWT>Admin token, API token issued via /api-tokens, or an OIDC JWT access token issued by the configured OIDC provider.
flow*stringFormat
uuidThe flow's function index.
application/json- response
The flow's function index: Flux's ProjectTree (spec §6.1), always the src directory.
kind*"dir"Value in
"dir"name*stringThe directory's own name.
text*stringDisplay string (Flux spec §6.4).
path*stringCanonical path (Flux spec §5.3).
children*array<|>Directories first, then files, each by name (Flux spec §6.3).
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": [ {} ]}