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
| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | Optional | Page number, starting at 1. Default 1. |
per_page | integer | Optional | Subaccounts per page, 1–100. Default 25. |
Responses
| Status | Description |
|---|---|
200 | OK. A page of your subaccounts (id, parent_account_id, name, slug, status). |
401 | Missing 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()