List campaigns

Campaigns with their Active state and category.

GET https://cotlet.dev/api/v1/mautic/campaigns

read

Lists the campaigns of your Mautic. active is true when the Active switch of the campaign is on. category is the Category you set on the campaign, or null. Use campaign_id with set_campaign_active.

Parameters

No parameters.

Request

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

Example response

JSON

{
  "campaigns": [
    {
      "campaign_id": 12,
      "name": "Webinar follow-up",
      "active": true,
      "category": "Webinars"
    },
    {
      "campaign_id": 15,
      "name": "Birthday email",
      "active": false,
      "category": 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.