zinn-campaigns
POST /v1/public/email-marketing/connect/{public_key}
A lead from the website snippet (no login; text/plain JSON from sendBeacon).
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/{public_key} \
-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
Answers 202 for every outcome but an unknown or switched-off key (no address oracle). A post from a host the website does not allow is dropped. A lead that ticked a consent box gets the linked sign-up form's double opt-in. Rate-limited per visitor and website.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
public_key (path) | string | Yes | — |
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<received> | Yes | — |
Errors this endpoint can return
410 · 429