Call it
curl https://api.peume.com/v1/call/send-conversion-events-to-one-destination-legacy \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"destinationId": "your destinationId",
"events": []
}
}'const res = await fetch("https://api.peume.com/v1/call/send-conversion-events-to-one-destination-legacy", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"destinationId": "your destinationId",
"events": []
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/send-conversion-events-to-one-destination-legacy",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"destinationId": "your destinationId",
"events": []
}
},
)
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: send-conversion-events-to-one-destination-legacy.
Parameters
accountIdRequiredstringSocialAccount ID (metaads, googleads, linkedinads, tiktokads, openaiads, pinterestads, or redditads). For Messenger events (`actionSource` `business_messaging` with `messaging.channel` `messenger`), the connected Facebook Page account instead, with the Page dataset from `POST /v1/facebook/dataset` as `destinationId`.
destinationIdRequiredstringPlatform destination identifier. For Meta, the pixel/dataset ID. For Google, the conversion action resource name. For LinkedIn, the conversion rule ID or full `urn:lla:llaPartnerConversion:{id}` URN. For OpenAI Ads, the pixel wire id. For Pinterest, the numeric ad account id. For Reddit, the pixel id (`a2_...`).
eventsRequiredarraytestCodestringTest event code. Send it at the request root, never inside an event. A root-level `test_event_code` (Meta's own name) is accepted as an alias and must be a non-empty string; sending both with different values is a 400. - Meta: sent as `test_event_code`. Events show in Events Manager's Test Events tab for the pixel whose current test code matches (Meta rotates the code, so copy it again from that tab). Meta still processes them like any other event, so remove it in production. - Pinterest: any value sends the batch with `test=true` (validated, not recorded). - Reddit: sent as `test_id`, so the
consentstringEvery event's consent, unless the event sets its own. For visitors in the EEA, UK and CH it decides whether the destination gets the event at all, as described under Consent on `POST /v1/events`; events left out are listed in `drops`. How the platforms read the signals of the events they get: - **Google:** sent as the request's consent. Google does not use EEA, UK or CH conversions without `adUserData: GRANTED`. - **Meta:** any `DENIED` flag enables Limited Data Use on the events (data_processing_options ["LDU"] with geolocation, country 0 / state 0). LDU applies to US state privacy laws, no
