Call it
curl https://api.peume.com/v1/call/update-a-tracking-tag \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"tagId": "your tagId"
}
}'const res = await fetch("https://api.peume.com/v1/call/update-a-tracking-tag", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"tagId": "your tagId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/update-a-tracking-tag",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"tagId": "your tagId"
}
},
)
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-tag.
Parameters
accountIdRequiredstringtagIdRequiredstringPixel id.
adAccountIdstringScopes the lookup on platforms whose tag ids live inside an ad account. Ignored elsewhere.
namestringenableAutomaticMatchingbooleanMeta Advanced Matching toggle (`enable_automatic_matching`).
automaticMatchingFieldsarrayWhich user fields Advanced Matching may collect. Meta's terse codes: em=email, ph=phone, fn=first name, ln=last name, ge=gender, db=date of birth, ct=city, st=state, zp=zip.
firstPartyCookieStatusstringempty · first_party_cookie_disabled · first_party_cookie_enabled
dataUseSettingstringadvertising_and_analytics · analytics_only · empty
enableFirstPartyCookiesbooleanFirst-party cookie on or off (TikTok, LinkedIn). Platform-neutral alternative to `firstPartyCookieStatus`.
autoTaggingbooleanGoogle Ads: turn gclid auto-tagging on or off for the ad account.
