zinn-campaigns
POST /v1/public/email-marketing/connect/leads
A lead from a server (custom app, Joomla, Node, Moodle, a Zapier-style tool).
Authentication
This endpoint is public. It takes no credential and no organisation — it is what our own marketing site and AI answer engines read.
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/public/email-marketing/connect/leads \
-H "Content-Type: application/json" \
-d '{ "email": <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
Authenticate with Authorization: Bearer zcs_... (the website's secret). Idempotent on Idempotency-Key (or idempotency_key). X-Zinn-Source (joomla, node, nextjs, moodle) names the connector, recorded as the lead's via; otherwise webhook. The lead becomes a contact in the website owner's org; it joins a list only with consent and a linked sign-up form, and an unsubscribed or bounced address is never re-subscribed. Rate-limited per website (20,000 an hour).
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
Idempotency-Key (header) | string | No | — |
X-Zinn-Source (header) | string<joomla, node, nextjs, moodle> | No | — |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
email | string | Yes | — |
idempotency_key | string | No | Required unless the Idempotency-Key header is sent. The same key twice writes one lead. |
consent | boolean | string | No | The person ticked a marketing-consent box (true, or yes/1/on). |
consent_text | string | No | — |
form | string | No | The form's name or id on the site. |
page_url | string | No | — |
submitted_at | string | No | — |
first_name | string | No | — |
last_name | string | No | — |
name | string | No | — |
labels | string[] | No | e.g. Moodle: Algebra 1; merged into the contact's labels. |
fields | object | No | Other form fields (at most 25 kept; password and card fields are dropped). |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
status | string<created, duplicate> | Yes | — |
lead_id | string | Yes | — |
outcome | string<contact, joined, pending, suppressed, full> | Yes | — |
Errors this endpoint can return
400 · 401 · 403 · 410 · 429