Skip to content
FlowAPI

Documentation

llms.txt

Webhooks: current status

FlowAPI accepts and stores a webhook_url (https, up to 2,048 characters) on every job, but signed webhook delivery is not switched on yet: today, poll GET /v1/jobs/{id} to learn when a job reaches one of its 3 final statuses.

What works today

  • webhook_url is validated (https only, at most 2,048 characters) and saved with the job.
  • No callback is sent yet. Your integration must poll the job.

What is planned

When delivery is switched on, FlowAPI will POST the job object to your webhook_url on job.succeeded, job.failed and job.cancelled, signed so you can verify it came from FlowAPI. This page will document the headers and the verification code before that happens.

ts
const job = await submit(body);   // POST /v1/generations
const done = await waitForJob(job.id); // poll, see /docs/jobs

Poll every 2–5 seconds: reads allow 1200 requests per minute per key. A job still unfinished after 30 minutes (image) or 90 minutes (video) is marked failed and refunded, so polling always ends.

Write your handler around the job object returned by GET /v1/jobs/{id}: a future webhook will carry the same object.

FAQ

Does the API send webhooks today?
No. webhook_url is accepted and stored, but signed delivery is not switched on yet; poll GET /v1/jobs/{id}.
Should I still send webhook_url?
Yes. Sending an https webhook_url now is harmless, and jobs keep it for when delivery starts.
Which events are planned?
Three events are planned: job.succeeded, job.failed and job.cancelled.