PeumeAPI

Ads

Add a forwarding rule

Saves where a profile's events go: every event sent to `POST /v1/events` for that profile is then forwarded to this destination.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/add-a-forwarding-rule \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accountId": "your accountId",
    "destinationId": "your destinationId"
  }
}'

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: add-a-forwarding-rule.

Parameters

accountIdRequiredstring

Connected ads account ID that owns the destination.

destinationIdRequiredstring

The platform destination: a pixel, a conversion action, a conversion rule, a GA4 web stream measurement id (`G-…`), a HubSpot portal id, a Salesforce org id or a Mailchimp audience id.

eventNamesarray
sourcesarray

Forward only events from these sources, such as only `web` for a tracked website. Leave it out to forward events from every source.

eventNameMapobject

eventNameMap

valueOverrideobject

valueOverride

valueConditionobject

valueCondition

eventValuesobject

eventValues

apiSecretstring

Google Analytics streams only: the stream's Measurement Protocol API secret (GA4 Admin › Data streams). Optional when the connection has edit access, since then creates it. Checked against Google's validation server, stored encrypted, never returned. Change it with `PATCH /v1/events/forwarding-rules/{ruleId}`.

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.