List contacts
Contacts of one list with status, tags and dates, filtered by status, tag, segment or email address.
GET https://cotlet.dev/api/v1/emailoctopus/lists/{list_id}/contacts
Lists the contacts of one list, 50 to a page by default; pass next_cursor back as cursor for the next page. status picks the subscribed, pending or unsubscribed filter of the contacts page. tag and segment filter the way the Tags and Segment drop-downs do, and search matches an email address. The response also returns total, the number of contacts that match the filters. added is when the contact joined the list, last_changed when it was last edited.
Parameters
| Name | Type | Description |
|---|---|---|
| list_id string required | string | List ID from list_lists. |
| status enum | enum | subscribed, pending or unsubscribed. Default: all three. |
| tag string | string | Only contacts with this tag. |
| segment string | string | Name of a segment from list_segments. |
| search string | string | Email address to look for. |
| cursor string | string | next_cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/emailoctopus/lists/list_8c41d2/contacts \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("emailoctopus", "list_contacts", {"list_id":"list_8c41d2"}) const result = await cotlet.call('emailoctopus', 'list_contacts', {"list_id":"list_8c41d2"}); cotlet call emailoctopus list_contacts --data '{"list_id":"list_8c41d2"}' Example response
{
"total": 212,
"contacts": [
{
"contact_id": "e3ab8c80-5f65-11ed-835e-030e4bb63150",
"email_address": "sam@example.com",
"first_name": "Sam",
"last_name": "Reed",
"tags": [
"customer"
],
"status": "subscribed",
"added": "2025-03-04T10:12:00Z",
"last_changed": "2025-03-04T10:12:00Z"
},
{
"contact_id": "f1c2d3e4-6a7b-11ed-9c8d-0242ac120002",
"email_address": "lena@example.org",
"first_name": "Lena",
"last_name": "Novak",
"tags": [],
"status": "subscribed",
"added": "2025-04-18T16:40:00Z",
"last_changed": "2025-06-02T09:05:00Z"
}
],
"next_cursor": "2"
}