List contacts of an email

Contacts who did not open, opened, clicked, bounced or unsubscribed from one sent email.

GET https://cotlet.dev/api/v1/constant-contact/email-contacts

read

Returns the contacts behind a number on the email's Reporting page, one page per call; pass next_cursor back as cursor for the next page. type picks the list: did_not_open (sent the email, never opened it), opened, clicked, bounced or unsubscribed. Each row has the contact_id to use in get_contact and add_contacts_to_list.

Parameters

Parameters: list_email_contacts
NameTypeDescription
email_id string required string Email ID from list_emails.
type enum required enum did_not_open, opened, clicked, bounced or unsubscribed.
limit integer integer How many items to return per page.
cursor string string Next page cursor from the previous call.

Request

cURL
curl "https://cotlet.dev/api/v1/constant-contact/email-contacts?email_id=email_8c41d2&type=did_not_open" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("constant-contact", "list_email_contacts", {"email_id":"email_8c41d2","type":"did_not_open"})
Node.js
const result = await cotlet.call('constant-contact', 'list_email_contacts', {"email_id":"email_8c41d2","type":"did_not_open"});
CLI
cotlet call constant-contact list_email_contacts --data '{"email_id":"email_8c41d2","type":"did_not_open"}'

Example response

JSON

{
  "contacts": [
    {
      "contact_id": "c1a2b3d4-0001-4e5f-8a9b-1c2d3e4f5a01",
      "email": "lena.ortiz@example.com",
      "name": "Lena Ortiz"
    },
    {
      "contact_id": "c1a2b3d4-0002-4e5f-8a9b-1c2d3e4f5a02",
      "email": "sam.okafor@example.com",
      "name": "Sam Okafor"
    }
  ],
  "next_cursor": "eyJwIjoyfQ"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.