Manage contacts
Create, find, update and group contacts from your own system.
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
/api/v1/contacts
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" }
}'
{
"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"
}
}
| Field | Needed? | 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
/api/v1/contacts
Search by name, phone or email; results come in pages.
curl "https://flowleb.com/api/v1/contacts?search=maya&page=1&per_page=25" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"data": [ { "id": 9120, "name": "Maya Shah", "phone": "+919876543210", … } ],
"meta": { "page": 1, "per_page": 25, "total": 1, "last_page": 1 }
}
Update or delete
/api/v1/contacts/{id}
Send only the fields you want to change.
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" } }'
/api/v1/contacts/{id}
Removes the contact.
Groups
Groups are lists you can message together in a broadcast.
# 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" }'