List campaigns

Lists the campaigns (workflows) of the account with their names and ids.

GET https://cotlet.dev/api/v1/agile-crm/campaigns

read

Returns campaign id, name and creator, one page at a time. The id feeds get_campaign_report and add_contacts_to_campaign. Campaign workflows are not returned as a diagram; the nodes inside a campaign are not read.

Parameters

Parameters: list_campaigns
NameTypeDescription
cursor string string next_cursor from the previous page

Request

cURL
curl https://cotlet.dev/api/v1/agile-crm/campaigns \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("agile-crm", "list_campaigns")
Node.js
const result = await cotlet.call('agile-crm', 'list_campaigns');
CLI
cotlet call agile-crm list_campaigns

Example response

JSON

{
  "campaigns": [
    {
      "campaign_id": "5731834621411328",
      "name": "Onboarding series",
      "creator": "Sam Keller"
    },
    {
      "campaign_id": "5748226110054400",
      "name": "October newsletter",
      "creator": "Sam Keller"
    }
  ],
  "next_cursor": 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.