Skip to main content

List Contacts

Retrieve a paginated list of contacts in your Waplify account. You can search by name, phone number, or email.

GET /api/v1/contacts/

Query parameters

ParameterTypeRequiredDefaultDescription
pagenumberNo1Page number (starts at 1)
limitnumberNo20Contacts per page (max 100)
searchstringNoSearch by name, phone, or email

Example request

curl -X GET "https://server.waplify.io/api/v1/contacts/?page=1&limit=20&search=john" \
-H "Authorization: Bearer wapl_your_api_key"

Example response

{
"status": "success",
"contacts": [
{
"id": "507f1f77bcf86cd799439012",
"first_name": "John",
"last_name": "Doe",
"phone_number": "911234567890",
"email": "john@example.com",
"company": "Acme Corp",
"tags": ["vip"],
"opted_in": true,
"source": "api",
"created_at": "2024-06-15T10:00:00Z"
}
],
"total": 1,
"page": 1,
"limit": 20
}

Contact fields

FieldTypeDescription
idstringUnique contact ID
first_namestringFirst name
last_namestringLast name (may be null)
phone_numberstringPhone with country code
emailstringEmail address (may be null)
companystringCompany name (may be null)
tagsarrayList of tags
opted_inbooleanWhether contact has opted in
sourcestringHow the contact was created (api, manual, import, etc.)
created_atstringISO 8601 timestamp