List emails

Emails with type (template or segment), published state and the segments a segment email goes to.

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

read

Lists the emails of your Mautic. type is template (used by campaigns, forms and triggers, can reach a contact more than once) or segment (a broadcast, each contact gets it once). Use email_id with get_email_stats. Listing does not send anything.

Parameters

No parameters.

Request

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

Example response

JSON

{
  "emails": [
    {
      "email_id": 58,
      "name": "October newsletter",
      "type": "segment",
      "published": true,
      "segments": [
        "newsletter"
      ]
    },
    {
      "email_id": 61,
      "name": "Webinar reminder",
      "type": "template",
      "published": true,
      "segments": []
    }
  ]
}

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.