zinn-campaigns

POST /v1/public/email-marketing/connect/leads

A lead from a server (custom app, Joomla, Node, Moodle, a Zapier-style tool).

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/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

NameTypeRequiredWhat it is
Idempotency-Key (header)stringNo—
X-Zinn-Source (header)string<joomla, node, nextjs, moodle>No—

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<created, duplicate>Yes—
lead_idstringYes—
outcomestring<contact, joined, pending, suppressed, full>Yes—

Errors this endpoint can return

400 · 401 · 403 · 410 · 429