public

POST /v1/site-optin/ingest

Receive one ticked visitor offers box from a hosted site (signed webhook).

All public 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/site-optin/ingest \
  -H "Content-Type: application/json" \
  -d '{ "site": <string>, "idempotency_key": <string>, "email": <string>, "wording_version": <string>, "form": <string>, "consented_at": <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

What a hosted WordPress site POSTs when a visitor TICKED the offers box on a form. Signed with the same HMAC scheme as ingestSiteLinks (X-Zinn-Cache-Timestamp, X-Zinn-Cache-Signature: sha256=<hex> over "<timestamp>\n<body>"). 202 = queued (stored asynchronously with its consent evidence); 200 accepted: false = the box is off for this site, drop it. A replay with the same idempotency_key creates nothing new. The IP is hashed on arrival and never stored raw. Every refusal is uninformative on purpose (unknown host 404, bad signature 401).

Parameters

NameTypeRequiredWhat it is
X-Zinn-Cache-Timestamp (header)stringYes—
X-Zinn-Cache-Signature (header)stringYessha256=<hex>.

Request body

NameTypeRequiredWhat it is
sitestringYesThe site's primary domain.
idempotency_keystringYes—
emailstringYes—
namestringNo—
wording_versionstringYes—
localestringNo—
page_urlstringNo—
formstringYes—
consented_atstringYes—
ipstringNoHashed on arrival; never stored raw.
user_agentstringNo—
product_categoriesstring[]No—

Response

NameTypeRequiredWhat it is
acceptedbooleanYes—
reasonstring<disabled>No—

Errors this endpoint can return

401 · 404 · 422 · 503