Quickstart

Mint a key, trigger a run, stream output — in five minutes.

You’ll need a FlowKoi account, a flow with a CLAUDE.md in your project, and 60 seconds at the keyboard.

1. Mint an API key

In the FlowKoi dashboard:

  1. Open the project that contains your flow.
  2. Settings → API → New API key.
  3. Copy the key — it’s shown once (flo_…). Anything that can read it can spend your quota, so treat it like a password.

tip

Keys live alongside the project’s webhookSecret. You’ll need that secret too if you’re using completion webhooks — see Webhooks.

2. Find your flow ID

Same page, Flows tab. Each flow has a UUID — copy the one you want to invoke. Or list them programmatically:

curl https://api.flowkoi.com/api/v1/flows \
  -H "Authorization: Bearer $FLOWKOI_API_KEY"

3. Trigger a run

curl https://api.flowkoi.com/api/v1/flows/$FLOW_ID/runs \
  -H "Authorization: Bearer $FLOWKOI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "Summarise the latest README change."}'

The response includes the runId, a streamUrl (SSE), and a wsUrl (WebSocket). Both are pre-signed; use whichever your runtime prefers.

4. Stream output

curl -N "https://api.flowkoi.com/api/v1/runs/$RUN_ID/stream?api_key=$FLOWKOI_API_KEY"

The stream uses Server-Sent Events. See Streaming for the event format and the WebSocket alternative.

5. (Optional) Get notified when it finishes

Pass a callbackUrl at trigger time and FlowKoi will POST a signed payload to it the moment the run reaches a terminal state. Full details and verification recipe in Webhooks.

Where next