List contact lists

Contact lists of your Mailjet account with their subscriber counts.

GET https://cotlet.dev/api/v1/mailjet/contact-lists

read

Returns every contact list with its list_id, name and number of subscribers, the same as Contacts, then Contact Lists. Use list_id as the list_id parameter of the other tools. A new account has one list, MyFirstTest, with your own address.

Parameters

No parameters.

Request

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

Example response

JSON

{
  "lists": [
    {
      "list_id": 10234567,
      "name": "Newsletter",
      "subscribers": 4203
    },
    {
      "list_id": 10234588,
      "name": "Workshop waitlist",
      "subscribers": 214
    }
  ]
}

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.