Get campaign

One campaign with its message sequence: initial email, follow-ups, drips and on-click emails.

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

read

Returns one campaign and every message of its sequence in sending order. type is initial, follow-up, drip or on-click. reply_to_id is set on a follow-up and points to the first message of its reply chain, so follow-ups sent as replies share one thread. A campaign the team cannot see comes back as not_found. Read this before add_follow_up to see how long the sequence is.

Parameters

Parameters: get_campaign
NameTypeDescription
campaign_id integer required integer Campaign ID from list_campaigns.

Request

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

Example response

JSON

{
  "id": 4821,
  "title": "Agency outreach Q4",
  "is_paused": false,
  "is_archived": false,
  "sender": {
    "email_address": "sam@northwind.example",
    "from_name": "Sam Rivera"
  },
  "messages": [
    {
      "id": 90311,
      "type": "initial",
      "subject": "Quick question about your client reporting",
      "reply_to_id": null,
      "is_paused": false
    },
    {
      "id": 90312,
      "type": "follow-up",
      "subject": null,
      "reply_to_id": 90311,
      "is_paused": false
    },
    {
      "id": 90313,
      "type": "follow-up",
      "subject": null,
      "reply_to_id": 90311,
      "is_paused": false
    }
  ],
  "url": "https://mailshake.com/app/#/2210/campaigns/4821/overview"
}

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.