Call it
curl https://api.peume.com/v1/call/review-status-of-every-tiktok-smart-ad-of-an \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"includeDeleted": false,
"maxAgeSeconds": 3600,
"page": 1,
"pageSize": 500
}
}'const res = await fetch("https://api.peume.com/v1/call/review-status-of-every-tiktok-smart-ad-of-an", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"includeDeleted": false,
"maxAgeSeconds": 3600,
"page": 1,
"pageSize": 500
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/review-status-of-every-tiktok-smart-ad-of-an",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"includeDeleted": False,
"maxAgeSeconds": 3600,
"page": 1,
"pageSize": 500
}
},
)
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: review-status-of-every-tiktok-smart-ad-of-an.
Parameters
accountIdRequiredstringA tiktok or tiktokads account ID
adAccountIdRequiredstringTikTok advertiser ID
includeDeletedbooleanAlso return Smart+ ads deleted on TikTok (listed with `primary_status: STATUS_ALL`).
Example: false
maxAgeSecondsintegerFreshness window in seconds. Reviews, refusals and the listing read within it are served without calling TikTok; older ones are still returned but read again, oldest first.
Example: 3600
pageintegerExample: 1
pageSizeintegerExample: 500
