Skip to content
New Describe an automation in plain words, and AI builds it for you.
Developers

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.

REST API v1 Developers

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.

Base URL
https://flowleb.com/api/v1

What you can do

Send messages

Single messages, bulk broadcasts, campaigns and scheduled sends.

Receive messages

Inbound messages in real time through webhooks.

Contacts and leads

Create, read, update and delete contacts, groups and custom attributes.

Templates

Create, update and list WhatsApp templates.

Automation flows

Enrol a contact into a flow.

Delivery status

Sent, delivered, read or failed, per message.

Numbers

List connected numbers and their status.

Account and usage

Your plan, limits and message credits.

Authentication

  1. 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

  2. Send it with every request

    As a Bearer token in the Authorization header, or in an X-Api-Key header.

  3. Revoke it when needed

    Each key belongs to one workspace. A revoked key stops working at once.

Request header
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.

EventSent 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.

Loading endpoints…

Still stuck? Ask the team, a person replies by email.