zinn-campaigns

POST /v1/public/email-marketing/connect/{public_key}

A lead from the website snippet (no login; text/plain JSON from sendBeacon).

All zinn-campaigns endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

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

NameTypeRequiredWhat it is
public_key (path)stringYes—

Request body

NameTypeRequiredWhat it is
emailstringYes—
idempotency_keystringNoRequired unless the Idempotency-Key header is sent. The same key twice writes one lead.
consentboolean | stringNoThe person ticked a marketing-consent box (true, or yes/1/on).
consent_textstringNo—
formstringNoThe form's name or id on the site.
page_urlstringNo—
submitted_atstringNo—
first_namestringNo—
last_namestringNo—
namestringNo—
labelsstring[]Noe.g. Moodle: Algebra 1; merged into the contact's labels.
fieldsobjectNoOther form fields (at most 25 kept; password and card fields are dropped).

Response

NameTypeRequiredWhat it is
statusstring<received>Yes—

Errors this endpoint can return

410 · 429