List subaccounts

Create and manage account-scoped tenant records for SaaS and reseller workflows.

Subaccounts are account-scoped tenant records you can use to model customers in SaaS and reseller workflows. List, create, and update them with a parent account API key.

GET /v3/subaccounts

Query parameters

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

Responses

StatusDescription
200OK. A page of your subaccounts (id, parent_account_id, name, slug, status).
401Missing or invalid API key.

Code examples

cURL
curl https://api.wemail.io/v3/subaccounts \
  -H "Authorization: Bearer afn_live_…"
Node.js
const res = await fetch("https://api.wemail.io/v3/subaccounts", {
  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/subaccounts",
    headers={"Authorization": f"Bearer {os.environ['WEMAIL_API_KEY']}"},
)
data = r.json()