Contacts · 1 min read
List Contacts in a List
Page through, sort, and search the contacts in one contact list
Returns the contacts in one list. Unlike List contacts, you can sort the results and fetch up to 1,000 contacts per page.
GET
/api/v1/contacts/lists/{list_id}/contactsPath parameters#
| Name | Type | Required | Description |
|---|---|---|---|
list_id | integer | Yes | The list's id from List contact lists. |
Query parameters#
| Name | Type | Required | Description |
|---|---|---|---|
page | integer | No | Page number, starting at 1. Default 1. |
limit | integer | No | Contacts per page, 1 to 1000. Default 25. |
sort_by | string | No | Column to sort by. Default added_at (when the contact joined the list). |
sort_dir | string | No | desc (default) or asc. |
search | string | No | Text to look for in name, phone, email, and company. |
Example request:
curl -G https://app.lemuai.com/api/v1/contacts/lists/55/contacts \
-H "X-API-Key: lemu_your_api_key" \
--data-urlencode "limit=500" \
--data-urlencode "sort_dir=asc"Response#
200: the same shape as List contacts: contacts, total_count, page, limit, and total_pages.
Errors#
| Status | When |
|---|---|
404 | No list with this id in your organization |
Was this page helpful?
Docs