Flobi is opening soon.

--Days
--Hours
--Minutes
--Seconds

DevelopersAPI reference

API reference

Run any cApp you've published from your own code. Each app has its own API keys, made by its owner.

Base URL and keys

Base URL
https://bo.flobi.ai/v1

Send the key as a bearer token. Keys start with flobi_sk_ and belong to one app. The app's owner makes and revokes them in Flow, in the cApp's settings under API (how). Keep the key on your server: it spends the owner's credits.

Header
Authorization: Bearer flobi_sk_…
Today the API runs cApps. Drive, Brands, Flow and the other apps are reached through the MCP server.

Start a run

Send the app's inputs by name. Leave out version to run the live version, or name one, such as "V3". Add a webhook URL to be told when it settles.

curl
curl https://bo.flobi.ai/v1/capps/YOUR-APP/run \
  -H "Authorization: Bearer flobi_sk_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-1042" \
  -d '{
    "inputs": { "prompt": "A bottle on travertine, hard light" },
    "webhook": "https://example.com/flobi"
  }'
  • Idempotency-Key: send the same key twice and you get the same run back, not a second one.
  • Prefer: wait=30: hold the reply up to that many seconds (60 at most) so a quick run comes back finished.
  • Bodies are JSON, up to 2 MB. Send media as URLs.

Get the result

Poll the run, or wait for its webhook. Polling is always the source of truth.

curl
curl https://bo.flobi.ai/v1/capps/YOUR-APP/runs/RUN_ID \
  -H "Authorization: Bearer flobi_sk_…"

Endpoints

RequestWhat it does
POST/capps/{app}/runStart a run. Returns the run object (201).
GET/capps/{app}The app's inputs and outputs, so you know what to send.
POST/capps/{app}/quoteWhat a run with these inputs would cost, in credits.
GET/capps/{app}/runsThis key's runs, newest first. limit, starting_after and status filter the list.
GET/capps/{app}/runs/{run}One run: its status, outputs and any choice it is waiting on.
POST/capps/{app}/runs/{run}/resumeAnswer the choice a waiting run asks for.
POST/capps/{app}/runs/{run}/cancelStop a run and release its credit hold.
POST/capps/{app}/runs/{run}/rerunRun again from a checkpoint with another choice. dry_run prices it.
GET/capps/{app}/generationsEvery file this key's runs made, as one feed.
GET/capps/{app}/versionsThe app's published versions.
GET/capps/{app}/accountThis key: its label, what it has spent, its limits and the owner's credits left.

The run object

JSON
{
  "id": "RUN_ID",
  "app": "your-app",
  "version": "V3",
  "status": "completed",
  "inputs": { "prompt": "A bottle on travertine, hard light" },
  "outputs": { … },
  "required_action": null,
  "checkpoints": [],
  "rerun_of": null,
  "error": null,
  "credits": { "estimated": 120, "used": 96 },
  "created_at": "2026-11-08T21:29:12.000Z",
  "started_at": "2026-11-08T21:29:13.000Z",
  "completed_at": "2026-11-08T21:30:00.000Z",
  "urls": {
    "get": "https://bo.flobi.ai/v1/capps/your-app/runs/RUN_ID",
    "cancel": "https://bo.flobi.ai/v1/capps/your-app/runs/RUN_ID/cancel"
  }
}
StatusMeaning
queuedAccepted, waiting to start.
runningWorking.
waiting_inputPaused for an answer. required_action says what to send and by when. At a checkpoint, the run carries on with its starting choice when the time is up.
completedDone. outputs holds the files and text.
failedStopped with an error. error.code says why.
cancelledStopped by you.
expiredEnded before it finished. error.code says why: decision_timeout when nobody answered in time, stalled when the run stopped or a restart cut it off.

Errors

Errors come back as { "error": { "code", "message" } } with the HTTP status below. A failed run carries the same codes in error.code, plus ones such as content_moderated, timeout and provider_unavailable.

HTTPCodeMeaning
401invalid_api_keyThe key is missing, wrong or revoked.
402insufficient_creditsThe key owner's workspace is out of credits.
404not_foundNo such app or run for this key.
409not_waitingThe run isn't waiting for input.
410app_unavailableThe app was deleted or has no published version.
413payload_too_largeThe body is over 2 MB. Send media as URLs.
422invalid_inputsAn input is missing or the wrong type. The message names it.
422invalid_requestA field is malformed, such as the Idempotency-Key or the webhook URL.
429rate_limitedToo many runs started. Wait for Retry-After.
429concurrency_limitThis key already has 5 runs going. Wait for one to end, or cancel one.

Build on Flobi from day one. Beta members get their first month of Pro free. New people get in every week.