Call it
curl https://api.peume.com/v1/call/list-accounts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"order": "asc",
"includeOverLimit": false,
"excludeHidden": false,
"adAccountRows": false,
"includeCreatorAccounts": false,
"includeSandbox": false
}
}'const res = await fetch("https://api.peume.com/v1/call/list-accounts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"order": "asc",
"includeOverLimit": false,
"excludeHidden": false,
"adAccountRows": false,
"includeCreatorAccounts": false,
"includeSandbox": false
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/list-accounts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"order": "asc",
"includeOverLimit": False,
"excludeHidden": False,
"adAccountRows": False,
"includeCreatorAccounts": False,
"includeSandbox": False
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: list-accounts.
Parameters
platformstringFilter accounts by platform (e.g. "instagram", "twitter").
statusstringFilter accounts by connection status. `connected` returns healthy accounts; `disconnected` returns accounts that need reconnection (per the same reconnection check surfaced in the dashboard). Omit to return accounts in any status. When combined with page/limit, pagination totals reflect the filtered result set.
connected · disconnected
searchstringCase-insensitive match on the account username, display name or platform user id. A 24-character hexadecimal value is read as an account id and matches only that exact account. Combine with page/limit to paginate the matches.
categorystringOnly accounts of this kind. ads = ad accounts (Meta, Google, LinkedIn, Pinterest, TikTok, X, OpenAI, Reddit, Microsoft), communication = WhatsApp, Telegram, Discord, Slack, iMessage, LINE and WeChat, blogs = Shopify and WordPress, crm = HubSpot and Salesforce, analytics = Google Analytics, Search Console, Stripe, Tag Manager and Axon, social = every other platform.
social · ads · communication · blogs · crm · analytics
sortstringSort an offset-paginated listing (page and limit) by account name, platform, profile name, status (accounts needing a reconnect first when ascending) or connection date. Ties keep the default order: platform, then newest first.
account · platform · profile · status · connected
orderstringDirection for `sort`.
asc · desc
Example: asc
includeOverLimitbooleanWhen true, includes accounts from over-limit profiles.
Example: false
excludeHiddenbooleanWhen true, leaves out accounts the dashboard does not show as connections: - posting accounts with `enabled: false` (ads accounts are always kept, whatever their `enabled` value); - the internal `sms` and `phone` accounts behind each phone number. Applied before pagination, so page totals and `statusCounts` count only the remaining accounts. Sandbox accounts added by `includeSandbox` are appended after this filter. Accepts `true` or `false` in any letter case; any other value returns 400.
Example: false
platformsstringComma-separated platforms (up to 50) to list together, the several-platform form of `platform`. Applied before pagination.
adAccountRowsbooleanWhen true, lists every ads account row, one per ad account. By default an API key or OAuth app sees each ads login once per profile and platform, as the single ads connection it had before rows per ad account: its oldest row. Only changes the result once ads are connected as one row per ad account; until then the two shapes are the same. Applied before pagination. Accepts `true` or `false` in any letter case; any other value returns 400.
Example: false
includeCreatorAccountsbooleanWhen true, also lists the accounts creators connected to your creator campaigns. They sit on creator profiles, which `GET /v1/profiles` does not list, and are left out by default. Asking for one creator profile by `profileId` lists its accounts either way. Applied before pagination. Accepts `true` or `false` in any letter case; any other value returns 400.
Example: false
includeSandboxbooleanWhen true, appends the shared WhatsApp sandbox account and the iMessage sandbox account to the list when they are active, honouring `platform` but no other filter. Ignored on a paginated request (page, limit or cursor) and together with `perProfile`. Accepts `true` or `false` in any letter case; any other value returns 400.
Example: false
includeStatusCountsbooleanWhen true, the response carries `statusCounts`: how many accounts match every other filter of the request (with `status` lifted) in total and how many of those need a reconnection. Accepts `true` or `false` in any letter case; any other value returns 400.
Example: false
pageintegerPage number (1-based) for offset paging. Requires limit; omit page, limit and cursor for an unpaged listing (at most 500 accounts for an API key or OAuth app).
limitintegerPage size. With page, an offset page; alone or with cursor, a cursor page.
cursorstringOpaque cursor from a previous response's `pagination.nextCursor`; returns the next page of `limit` accounts (500 when limit is omitted). A cursor we cannot parse returns 400. Cannot be combined with page.
profileIdsstringComma-separated profile IDs (up to 50) to preview, together with perProfile. The response then also carries `profileTotals`.
perProfileintegerReturn a preview of each profile in profileIds: the newest account of every platform it has, topped up to at least N. Requires profileIds; cannot be combined with page, limit or cursor.
