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
| Name | Type | Description |
|---|---|---|
| cursor string | string | next_cursor from the previous page |
Request
curl https://cotlet.dev/api/v1/agile-crm/campaigns \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("agile-crm", "list_campaigns") const result = await cotlet.call('agile-crm', 'list_campaigns'); cotlet call agile-crm list_campaigns Example response
{
"campaigns": [
{
"campaign_id": "5731834621411328",
"name": "Onboarding series",
"creator": "Sam Keller"
},
{
"campaign_id": "5748226110054400",
"name": "October newsletter",
"creator": "Sam Keller"
}
],
"next_cursor": null
}