PeumeAPI

Ads

Create a tracking tag

Creates a measurement pixel on an ad account and returns the snippet to install on your site.

$0.002 per callRuns on an account you connect

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"
  }
}'

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

accountIdRequiredstring

Ads SocialAccount id (platform `metaads` or `openaiads`).

adAccountIdRequiredstring

Meta ad account id, e.g. `act_123456789`. Required by this endpoint but ignored for OpenAI Ads.

nameRequiredstring
defaultEventTypestring

OpenAI 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

automaticMatchingFieldsarray

Pinterest 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.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.