Flowblocks
Dashboard
Dashboard
Getting Started
QuickstartHow it works
Building Workflows
The canvasGenerating with AIPreview and runsSharing and collaboration
Steps
OverviewAgentBranches and loopsGuardrails and approvalState and data
Connectors
OverviewGoogleMicrosoftDropboxOther providersMCP servers
Develop
Embedding the builderNode SDKREST API
Reference
Self-hostingEnvironment variablesLimitsFAQ

All systems operational

Develop

REST API

Start a run with one HTTP request. Covers authentication, the request body and the response.

The REST API starts workflow runs over HTTP. The Node SDK is a wrapper around it.

Authentication

Send your secret key as a bearer token.

Authorization: Bearer $FLOWBLOCKS_SECRET_KEY

Start a run

curl https://api.flowblocks.dev/v1/runs \
  -H "Authorization: Bearer $FLOWBLOCKS_SECRET_KEY" \
  -d '{
    "workflow": "support-triage",
    "input": "Where is my refund for order 1042?",
    "max_steps": 20
  }'

Body

Prop

Type

Response

{
  "run_id": "run_01J9X4T2V8KQ3M6ZB7C5N0RDHF",
  "workflow": "support-triage",
  "status": "completed",
  "steps": 6,
  "approvals": 1,
  "duration_s": 3.2,
  "run_url": "https://app.flowblocks.dev/runs/01J9X4T2"
}
FieldMeaning
run_idThe run's identifier
workflowThe workflow that ran
statusHow the run ended
stepsHow many step visits the run made
approvalsHow many approvals it waited for
duration_sHow long it took, in seconds
run_urlThe run's full record, step by step

On this page

AuthenticationStart a runBodyResponse