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 https://cotlet.dev/api/v1/mautic/emails \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("mautic", "list_emails") const result = await cotlet.call('mautic', 'list_emails'); cotlet call mautic list_emails Example response
{
"emails": [
{
"email_id": 58,
"name": "October newsletter",
"type": "segment",
"published": true,
"segments": [
"newsletter"
]
},
{
"email_id": 61,
"name": "Webinar reminder",
"type": "template",
"published": true,
"segments": []
}
]
}