Call it
curl https://api.peume.com/v1/call/update-a-tracking-site \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"siteId": "your siteId"
}
}'const res = await fetch("https://api.peume.com/v1/call/update-a-tracking-site", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"siteId": "your siteId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/update-a-tracking-site",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"siteId": "your siteId"
}
},
)
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-a-tracking-site.
Parameters
siteIdRequiredstringnamestringpixelsarrayThe ad pixels the tag loads once consent allows, up to 20, one Microsoft UET tag at most. `null` or `[]` removes them.
consentModeBridgebooleanWrite the site's consent banner into Google Consent Mode v2: a denied default in the EEA, UK and Switzerland where the page sets none, then each update.
domainsarrayHosts allowed to send events, such as `brand.com`. Events from any other origin are dropped.
consentModeobjectconsentMode
customHostnamestringA subdomain of one of the site's domains, never the domain itself. `null` removes it.
proxyPathstringThe path your server forwards to the collector, such as `/zt`. `null` removes it.
googleTagIdsarrayGoogle tag ids such as `GTM-XXXXXXX`, `G-XXXXXXXXXX` or `AW-XXXXXXXXXX`, up to 10. `null` or `[]` removes them.
