ads
POST /v1/ads/chat-channels
Connect a Slack incoming webhook or a Microsoft Teams Workflows webhook.
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.
Where your organisation id goes
This endpoint takes org_id as a field in the JSON body.
Your organisation id is on the API keys screen in your dashboard, beside the key itself. It is the same id in every call you make.
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/chat-channels \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "kind": <string<slack, teams>>, "webhook_url": <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; audit action ads.chat_channel_create. The URL must be a Slack incoming webhook (https://hooks.slack.com/services/…) or a Teams Workflows webhook (*.logic.azure.com / *.api.powerplatform.com, path /workflows/), else 422 chatChannelUrl. It is stored in Vault and never returned. Each day's Zinn® Ads alert is posted there by Temporal, capped at max_items items with a "+N more" count; each change carries its 30-day Undo link.
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
org_id | string | No | — |
kind | string<slack, teams> | Yes | — |
label | string | No | — |
webhook_url | string | Yes | — |
alerts | string<needs, changes, alerts>[] | No | Defaults to all three. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
data | AdsChatChannel | Yes | A Slack or Microsoft Teams channel the organisation's Zinn® Ads alerts go to (za-198). |
Errors this endpoint can return
401 · 403 · 404 · 422 · 429