Skip to Content
ContactsList and Get Contacts

List and Get Contacts

List contacts

GET /v1/organization/contacts

Query parameters

ParameterTypeRequiredDescription
pagenumberPage number (default 1)
limitnumberPage size (default 20, max 500)
searchstringSearch by name, number, or attribute values
tagsstring / arrayTag filter. Use CSV (vip,newsletter) or repeated params
tag_match_modeand / orMatch behavior when multiple tags are provided
segment_idsstringComma-separated segment IDs

Example

curl "https://api.bahasha.app/v1/organization/contacts?page=1&limit=20&search=jane&tags=vip,newsletter&tag_match_mode=and&segment_ids=67f12bb3882d745f33f3d300" \ -H "Authorization: Bearer bh_live_xxxxxxxxxxxx"

Response

{ "data": [ { "id": "68011f5f8f7f109de8f62f5e", "first_name": "Jane", "middle_name": "", "last_name": "Doe", "full_name": "Jane Doe", "number": "+254700000000", "email": "[email protected]", "tags": ["vip"], "attributes": { "city": "Nairobi", "customer_tier": "Gold" }, "segment": { "id": "67f12bb3882d745f33f3d300", "name": "Returning Customers" }, "phone_number_metadata": { "countryCode": "254", "region": "KE", "numberType": "MOBILE", "e164Format": "+254700000000", "nationalFormat": "0700 000000" }, "created_at": "2026-04-24T08:12:40.110Z", "updated_at": "2026-04-24T09:55:18.409Z" } ], "pagination": { "total": 1, "page": 1, "limit": 20, "pages": 1 } }

Get a contact by ID

GET /v1/organization/contacts/:id
curl https://api.bahasha.app/v1/organization/contacts/68011f5f8f7f109de8f62f5e \ -H "Authorization: Bearer bh_live_xxxxxxxxxxxx"

Response

{ "data": { "id": "68011f5f8f7f109de8f62f5e", "first_name": "Jane", "middle_name": "", "last_name": "Doe", "full_name": "Jane Doe", "number": "+254700000000", "email": "[email protected]", "tags": ["vip"], "attributes": { "city": "Nairobi", "customer_tier": "Gold" }, "segment": { "id": "67f12bb3882d745f33f3d300", "name": "Returning Customers" } } }