Call it
curl https://api.peume.com/v1/call/update-a-conversion-event \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"tagId": "your tagId",
"eventId": "your eventId"
}
}'const res = await fetch("https://api.peume.com/v1/call/update-a-conversion-event", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"tagId": "your tagId",
"eventId": "your eventId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/update-a-conversion-event",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"tagId": "your tagId",
"eventId": "your eventId"
}
},
)
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-conversion-event.
Parameters
accountIdRequiredstringtagIdRequiredstringeventIdRequiredstringEvent id (`TrackingTagEvent.id`).
adAccountIdstringScopes the lookup on platforms whose tag ids live inside an ad account.
namestringtypestringThe platform's own event type enum value (e.g. `PURCHASE`).
siteEventstringNeutral alternative to `type`, mapped to the platform's closest type.
page_view · view_content · add_to_cart · search · initiate_checkout · add_payment_info · purchase
enabledbooleandefaultValuenumbercurrencystringISO 4217 code.
clickWindowDaysintegerviewWindowDaysintegerurlContainsstringFire only on pages whose URL contains this text (case-insensitive).
