List recipients

Recipients of a campaign, searchable and filterable by what they did.

GET https://cotlet.dev/api/v1/mailshake/campaigns/{campaign_id}/recipients

read

Lists the recipients of one campaign, 100 to a page, with their custom fields and whether they are paused. filter_action keeps only recipients who opened, clicked, replied, were sent a message, bounced, are paused or have problems (a missing text replacement or a failed send). negate flips the filter, so opened with negate returns recipients who never opened. Pass next_token back for the next page.

Parameters

Parameters: list_recipients
NameTypeDescription
campaign_id integer required integer Campaign ID from list_campaigns.
filter_action enum enum opened, clicked, replied, was_sent, bounced, paused or has_problems.
negate boolean boolean true to find recipients who did NOT take the filter_action. Default: false.
search string string Only recipients matching this name or email address.
per_page integer integer 1 to 100. Default: 100.
next_token string string Next page token from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/mailshake/campaigns/1/recipients \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("mailshake", "list_recipients", {"campaign_id":1})
Node.js
const result = await cotlet.call('mailshake', 'list_recipients', {"campaign_id":1});
CLI
cotlet call mailshake list_recipients --data '{"campaign_id":1}'

Example response

JSON

{
  "results": [
    {
      "id": 771204,
      "email_address": "dana@brightpath.example",
      "full_name": "Dana Whitfield",
      "is_paused": false,
      "fields": {
        "company": "Brightpath"
      }
    },
    {
      "id": 771205,
      "email_address": "omar@lumenlabs.example",
      "full_name": "Omar Haddad",
      "is_paused": false,
      "fields": {
        "company": "Lumen Labs"
      }
    }
  ],
  "next_token": null
}

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.