Call it
curl https://api.peume.com/v1/call/create-a-tracking-tag \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"name": "your name"
}
}'const res = await fetch("https://api.peume.com/v1/call/create-a-tracking-tag", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"name": "your name"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/create-a-tracking-tag",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"name": "your name"
}
},
)
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: create-a-tracking-tag.
Parameters
accountIdRequiredstringAds SocialAccount id (platform `metaads` or `openaiads`).
adAccountIdRequiredstringMeta ad account id, e.g. `act_123456789`. Required by this endpoint but ignored for OpenAI Ads.
nameRequiredstringdefaultEventTypestringOpenAI Ads only (ignored by Meta). When set, also provisions a standard conversion event setting wired to the new pixel, so `goal: conversions` ad creates on `POST /v1/ads/create` have an event to reference immediately.
order_created · lead_created · items_added · contents_viewed · checkout_started · registration_completed · subscription_created · trial_started · appointment_scheduled · page_viewed · app_installed · app_opened
automaticMatchingFieldsarrayPinterest only (400 elsewhere). Customer data the new tag matches automatically (automatic enhanced match): `em` email, `ph` phone, `fn`/`ln` name, `ge` gender, `db` date of birth, `ct`/`st`/`zp`/`country` location, `external_id`. Pinterest has one switch for the name and one for the location, so `fn` turns on `ln` too and any location code turns on all four.
