List mailing lists

Address a group of recipients by a single email.

Mailing lists let you address a group of recipients by a single email — wemail expands the list on send and produces one event stream per member. This endpoint returns every list in the workspace.

GET /v3/lists

Query parameters

ParameterTypeRequiredDescription
pageintegerOptionalPage number, starting at 1. Default 1.
per_pageintegerOptionalLists per page, 1–100. Default 25.

Responses

StatusDescription
200OK. A page of your mailing lists (id, address, name, description, member_count), oldest first.
401Missing or invalid API key.

Code examples

cURL
curl https://api.wemail.io/v3/lists \
  -H "Authorization: Bearer afn_live_…"
Node.js
const res = await fetch("https://api.wemail.io/v3/lists", {
  headers: {
    Authorization: `Bearer ${process.env.WEMAIL_API_KEY}`,
  },
});
const data = await res.json();
Python
import os, requests

r = requests.get(
    "https://api.wemail.io/v3/lists",
    headers={"Authorization": f"Bearer {os.environ['WEMAIL_API_KEY']}"},
)
data = r.json()