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

Parameters: list_campaigns
NameTypeDescription
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
curl https://cotlet.dev/api/v1/mailjet/campaigns \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("mailjet", "list_campaigns")
Node.js
const result = await cotlet.call('mailjet', 'list_campaigns');
CLI
cotlet call mailjet list_campaigns

Example response

JSON

{
  "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"
}

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.