API reference
Every endpoint of the Flowleb REST API, with its fields, an example request and the responses. New to the API? Start with the quick start guide.
Use the API to send WhatsApp messages, run broadcasts and campaigns, manage contacts and templates, start automation flows, and receive events by webhook. The list of endpoints below is built from the live API, so it is always current.
Base URL
Every path below starts with this address.
https://flowleb.com/api/v1
What you can do
Single messages, bulk broadcasts, campaigns and scheduled sends.
Inbound messages in real time through webhooks.
Create, read, update and delete contacts, groups and custom attributes.
Create, update and list WhatsApp templates.
Enrol a contact into a flow.
Sent, delivered, read or failed, per message.
List connected numbers and their status.
Your plan, limits and message credits.
Authentication
-
Create an API key
In your dashboard, open the REST API page and create a key. Copy it straight away: only a scrambled copy is stored, so it cannot be shown again.
Developer REST API
-
Send it with every request
As a Bearer token in the
Authorizationheader, or in anX-Api-Keyheader. -
Revoke it when needed
Each key belongs to one workspace. A revoked key stops working at once.
Authorization: Bearer YOUR_API_KEY
Webhooks
Add a webhook (see the Webhooks endpoints below) and Flowleb sends a POST with a JSON body to your URL whenever an event you chose happens. If you set a signing secret, each delivery carries an X-Flowleb-Signature header (HMAC-SHA256 of the body) so you can check it came from us.
| Event | Sent when |
|---|---|
message_received | Inbound message received |
message_sent | Outbound message sent |
message_delivered | Outbound message delivered |
message_read | Outbound message read |
message_failed | Outbound message failed |
broadcast_status_updated | Broadcast status changed |
campaign_status_updated | Campaign status changed |
campaign_contact_clicked | Recipient clicked a link |
campaign_contact_replied | Recipient replied |
contact_opt_in | Contact opted in |
contact_updated | Contact updated |
device_status_updated | Number status changed |
Rate limits
Each key can make a set number of requests per minute, depending on your plan. Over the limit you get 429 with a Retry-After header. Sending messages also uses your plan's message credits. More in Requests, responses and errors.
Endpoints
Click an endpoint to see its fields, an example request and the responses.