ads
POST /v1/ads/email-actions
Act on an e-mailed Approve, Undo or Apply link (signed in).
Authentication
Send an API key as a bearer token. The key must carry the ads.manage permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/ads/email-actions \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "token": <string> }'Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Gated on ads.manage in the change's organisation. The token is signed and expires (Approve and Apply 7 days, Undo 30). ?preview=1 only describes the action. A change's link (approve / undo) answers with change; a waste suggestion's one-click Apply from the daily e-mail (za-224: a step's suggestion or the off-intent rule's approval, never a budget move) answers with finding and runs the same path as actOnAdsFinding's apply. One click-shield exclusion's Undo from the daily e-mail (za-59) answers with exclusion and runs the same path as undoAdsShieldExclusion. The link never signs anyone in.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
preview (query) | string<1> | No | — |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
token | string | Yes | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
action | string<approve, undo, apply> | Yes | — |
change | AdsChange | No | One change to an ad account. summary holds figures (service, operations, resources, values), never sentences. za-326 r3: a change queued (or approved and waiting) while the… |
finding | AdsFinding | No | FINDALL1 (za-211) — one thing the daily audit found on the account, in figures. Money is in micros of figures.currency (the ad account's). |
exclusion | AdsShieldExclusion | No | — |
Errors this endpoint can return
401 · 403 · 404 · 422 · 429