Flobi is opening soon.

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

DevelopersWebhooks

Webhooks

Flobi sends a signed POST to your URL when a cApp run settles, so you don't have to poll.

Add a webhook

Pass a webhook URL when you start a run. It must be https:// and on the public internet: local and private addresses are refused.

JSON body
{
  "inputs": { "prompt": "…" },
  "webhook": "https://example.com/flobi"
}

Events

One event each time a run settles. Nothing is sent while it is queued or running.

EventWhen
run.completedThe run finished. GET the run for its outputs.
run.failedThe run stopped with an error. run.error has the code.
run.waiting_inputThe run is waiting for an answer. run.required_action.expires_at is the deadline. At a checkpoint, that is when it carries on with its starting choice.
run.cancelledThe run was cancelled.
run.expiredThe run ended before it finished: nobody answered in time, or it stalled. run.error.code says which.

Payload

The event is small on purpose: it says what happened and links to the run. Fetch the run with your key for the outputs.

POST body
{
  "type": "run.completed",
  "id": "RUN_ID:completed:1794173400",
  "created_at": "2026-11-08T21:30:00.000Z",
  "run": {
    "id": "RUN_ID",
    "app": "your-app",
    "version": "V3",
    "status": "completed",
    "error": null,
    "urls": { "get": "https://bo.flobi.ai/v1/capps/your-app/runs/RUN_ID" }
  }
}
HeaderWhat it is
X-Flobi-EventThe event type, such as run.completed.
X-Flobi-Webhook-IdUnique per event. Use it to drop duplicates.
X-Flobi-Signaturesha256= and the HMAC of the body.

Verify the signature

There's no separate webhook secret. The signing key is the SHA-256 of your API key, written as hex. HMAC-SHA256 the raw body with it and compare with the header.

Node.js
import { createHash, createHmac, timingSafeEqual } from "node:crypto";

const secret = createHash("sha256").update(process.env.FLOBI_API_KEY).digest("hex");

export function isFromFlobi(rawBody, signatureHeader) {
  const expected = "sha256=" + createHmac("sha256", secret).update(rawBody).digest("hex");
  const a = Buffer.from(expected);
  const b = Buffer.from(signatureHeader || "");
  return a.length === b.length && timingSafeEqual(a, b);
}

Use the body exactly as it arrived. Parsing and re-encoding the JSON changes the bytes and the signature won't match.

Delivery and retries

  • Answer with any 2xx within 10 seconds.
  • Otherwise Flobi tries again after 30 seconds, then after 2 minutes. Three tries in all.
  • Redirects aren't followed: a 3xx answer counts as a failed try.
  • The same event can arrive more than once. Drop repeats by X-Flobi-Webhook-Id.
  • A webhook is a nudge, not the record. If you miss one, the run is still there to poll.

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