Call it
curl https://api.peume.com/v1/call/update-account \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId"
}
}'const res = await fetch("https://api.peume.com/v1/call/update-account", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/update-account",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId"
}
},
)
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: update-account.
Parameters
accountIdRequiredstringusernamestringdisplayNamestringxCapabilitiesobjectX only. Per-account opt-in toggles for background API operations that incur X API pass-through costs. Each call is billed at the X tier rate. Either field can be sent independently; omitted fields are unchanged.
metaAdsSyncEnabledbooleanFacebook only (400 `invalid_field_value` on any other platform). Off by default for every Facebook account. `true` makes this account sync the of the ad accounts it reaches, like a `metaads` connection. - The first sync starts at once (14 days, then 90 days of history in the background) and fires `account.ads.initial_sync_completed` for this `accountId` with `platform: metaads`. - It then refreshes on the schedule. - Each switch from `false` to `true` runs another initial sync and fires the webhook again. Sending `true` while it is on changes nothing. - Needs `ads_managemen
