zinn-campaigns
POST /v1/email-marketing/senders
Connect a campaign sender (Zinn® sending, a sending service, a mailbox, or your own SMTP).
Authentication
Send an API key as a bearer token. The key must carry the email_marketing.manage permission; a key without it is refused with 403, not 404.
Where your organisation id goes
This endpoint takes org_id as a query parameter. Leave it out and the call covers your whole tenancy subtree; send it to narrow the call to one organisation.
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/email-marketing/senders \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "name": <string>, "from_address": <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 email_marketing.manage. Pick a provider from listEmailMarketingSenderProviders (SendGrid, Postmark, SES, Gmail, Microsoft 365 …) and send the fields it lists; API keys are kept in the secret store, never returned. Otherwise kind is pool (Zinn® sending through our marketing pool: send name and from_address only; the response carries dkim_record, the TXT record the From domain publishes, and verifying checks that it is live) or smtp (Amazon SES, Resend and Mailgun work through their SMTP interfaces); other kinds are refused until their adapter ships. pool is refused (refusal.campaigns.poolWhiteLabel) for a white-labelled organisation, which sends through its own server only. An SMTP password goes to the secret store and is never returned. The connection starts unverified; call the verify endpoint to prove it. 409 when the organisation already has a connection with that name.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
org_id (query) | Uuid | No | The organization this call acts on. Optional for a caller with exactly one direct membership; required for anyone with more than one — which is every reseller and every agency… |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
data_location | string<eu, global> | No | Managed senders only. |
kind | string<pool, smtp, ses, resend, mailgun, sendgrid, postmark, sparkpost, brevo, mailjet, elasticemail, smtp2go, managed> | No | — |
provider | string | No | A slug from GET /v1/email-marketing/sender-providers. |
name | string | Yes | — |
from_address | string | Yes | — |
host | string | No | — |
port | integer<25, 465, 587, 2525> | No | — |
tls | string<starttls, implicit> | No | — |
username | string | No | — |
password | string | No | — |
region | string | No | — |
domain | string | No | — |
message_stream | string | No | — |
api_key | string | No | — |
api_secret | string | No | — |
access_key_id | string | No | — |
secret_access_key | string | No | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
id | string | Yes | — |
kind | string<pool, smtp, ses, resend, mailgun, sendgrid, postmark, sparkpost, brevo, mailjet, elasticemail, smtp2go, managed> | Yes | — |
provider | string | Yes | The catalogue slug; empty for a connection made before the catalogue. |
managed | object | Yes | kind: managed only: the sending domain at our provider, the DNS records to publish, and its warm-up ramp. held = the EU route is waiting for approval; the… |
settings | object | Yes | The provider's non-secret settings (region, domain, message_stream); never a secret. |
health | EmailMarketingSenderHealth | Yes | The sending domain's latest DNS + reputation reading; null for pool and before the first check. |
name | string | Yes | — |
host | string | Yes | — |
port | integer | Yes | — |
tls | string | Yes | — |
username | string | Yes | — |
from_address | string | Yes | — |
status | string<unverified, verifying, verified, failing> | Yes | — |
status_detail | string | Yes | — |
status_detail_refusal | object | Yes | The catalogue form of status_detail when the sender check wrote it: a refusal.campaigns.verify* key plus its params, so the dashboard renders the sentence in the reader's… |
verified_at | string | Yes | — |
created_at | string | Yes | — |
dkim_record | object | Yes | Pool senders only (kind pool): the TXT record the From domain publishes so Zinn® sending can DKIM-sign as that domain. The selector is per organisation. Null for… |
Errors this endpoint can return
400 · 401 · 403 · 404 · 409 · 503