Getting started · 1 min read
Lists & search
Get results page by page, search and filter them, and fetch only what changed.
Pages
Lists return 25 results at a time. Use page and per_page (up to 100) to get more:
{
"data": [ … ],
"pagination": { "page": 2, "per_page": 25, "total": 132, "total_pages": 6 }
}To get everything, keep asking for the next page until you reach total_pages. Asking past the end gives an empty list, not an error.
Search and filter
- Search:
qlooks in names, email, phone and company. Case doesn't matter, and+91 98765-43210matches a stored phone number too. - Filter: combine filters like
status,source,assigned_to,category_id,created_after,created_beforeandupdated_after. Full list: List and search contacts. - Sort:
sortpicks the field andorderisascordesc. Default: newest first. - Dates look like
2026-10-01or2026-10-01T09:30:00Z. A bad value returns422 validation_failed.
Fetch only what changed
Keep your own copy of contacts up to date without downloading everything each time:
- Fetch everything once, oldest change first:
GET /api/v1/contacts?sort=updated_at&order=asc. - Remember the latest
updated_atyou saw. - Next time, ask only for what changed since then:
curl "https://api.zigcrm.com/api/v1/contacts?updated_after=2026-10-06T09:15:22Z&sort=updated_at&order=asc&per_page=100" \
-H "Authorization: Bearer $ZIGCRM_API_KEY"Note
Deleted contacts don't show up here. Use the contact.deleted and contacts.bulk_deleted webhooks to catch them.