Developers
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: q looks in names, email, phone and company. Case doesn't matter, and +91 98765-43210 matches a stored phone number too.
  • Filter: combine filters like status, source, assigned_to, category_id, created_after, created_before and updated_after. Full list: List and search contacts.
  • Sort: sort picks the field and order is asc or desc. Default: newest first.
  • Dates look like 2026-10-01 or 2026-10-01T09:30:00Z. A bad value returns 422 validation_failed.

Fetch only what changed

Keep your own copy of contacts up to date without downloading everything each time:

  1. Fetch everything once, oldest change first: GET /api/v1/contacts?sort=updated_at&order=asc.
  2. Remember the latest updated_at you saw.
  3. 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.