List campaigns
Campaigns of your account with their status, subject and list.
GET https://cotlet.dev/api/v1/mailjet/campaigns
read
Returns campaigns newest first with campaign_id, name, subject, status, the list they go to and, for sent ones, the send date. status filters by draft, scheduled or sent, and search matches part of the name. Pass next_cursor back as cursor for the next page.
Parameters
| Name | Type | Description |
|---|---|---|
| status enum | enum | draft, scheduled or sent. Default: all three. |
| search string | string | Part of the campaign name. |
| cursor string | string | next_cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/mailjet/campaigns \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("mailjet", "list_campaigns") const result = await cotlet.call('mailjet', 'list_campaigns'); cotlet call mailjet list_campaigns Example response
{
"campaigns": [
{
"campaign_id": 7164820931,
"name": "Autumn offer",
"subject": "Autumn offer: 20% off your next loaf",
"status": "sent",
"list": "Newsletter",
"sent_at": "2026-10-14T08:00:00+01:00"
},
{
"campaign_id": 7154402217,
"name": "Weekly digest, Oct 15",
"subject": "This week at Northside, Oct 15",
"status": "sent",
"list": "Newsletter",
"sent_at": "2026-10-15T08:00:00+01:00"
}
],
"next_cursor": "2"
}