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

Manage contacts

Create, find, update and group contacts from your own system.

5 min read Developers

Keep Flowleb's contact list in step with your website, store or CRM: every new customer is added automatically, with the details your messages need.

Create a contact

POST /api/v1/contacts
cURL
curl -X POST https://flowleb.com/api/v1/contacts \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Maya Shah",
    "phone": "919876543210",
    "email": "maya@example.com",
    "group_ids": [4],
    "attributes": { "city": "Mumbai", "plan": "Gold", "last_order": "#2045" }
  }'
Response 201 Created
{
  "data": {
    "id": 9120,
    "name": "Maya Shah",
    "phone": "+919876543210",
    "email": "maya@example.com",
    "tags": [ { "id": 4, "name": "Customers" } ],
    "attributes": { "city": "Mumbai", "plan": "Gold", "last_order": "#2045" },
    "created_at": "2026-11-18T10:31:00+05:30"
  }
}
FieldNeeded?Notes
phone Yes With country code. Or send country_code (e.g. +91) and the local number.
name Yes, or first_name Or send first_name, last_name and Flowleb joins them
email · address · language · title · note No Extra details
group_ids No Groups to add them to (ids from GET /contact-groups)
attributes No Any extra fields you like, as key/value pairs: city, plan, last order…
is_unsubscribed No true if they asked not to get messages

Find contacts

GET /api/v1/contacts

Search by name, phone or email; results come in pages.

cURL
curl "https://flowleb.com/api/v1/contacts?search=maya&page=1&per_page=25" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response 200 OK
{
  "data": [ { "id": 9120, "name": "Maya Shah", "phone": "+919876543210", … } ],
  "meta": { "page": 1, "per_page": 25, "total": 1, "last_page": 1 }
}

Update or delete

PUT /api/v1/contacts/{id}

Send only the fields you want to change.

cURL
curl -X PUT https://flowleb.com/api/v1/contacts/9120 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "attributes": { "plan": "Platinum" } }'
DELETE /api/v1/contacts/{id}

Removes the contact.

Groups

Groups are lists you can message together in a broadcast.

cURL
# list groups
curl https://flowleb.com/api/v1/contact-groups -H "Authorization: Bearer YOUR_API_KEY"

# create a group
curl -X POST https://flowleb.com/api/v1/contact-groups \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "VIP customers" }'

A good sync routine

New customer In your system
Look up GET /contacts?search=phone
Create or update POST or PUT
Add to group group_ids

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