public
POST /v1/site-optin/ingest
Receive one ticked visitor offers box from a hosted site (signed webhook).
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
| Name | Type | Required | What it is |
|---|---|---|---|
X-Zinn-Cache-Timestamp (header) | string | Yes | — |
X-Zinn-Cache-Signature (header) | string | Yes | sha256=<hex>. |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
site | string | Yes | The site's primary domain. |
idempotency_key | string | Yes | — |
email | string | Yes | — |
name | string | No | — |
wording_version | string | Yes | — |
locale | string | No | — |
page_url | string | No | — |
form | string | Yes | — |
consented_at | string | Yes | — |
ip | string | No | Hashed on arrival; never stored raw. |
user_agent | string | No | — |
product_categories | string[] | No | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
accepted | boolean | Yes | — |
reason | string<disabled> | No | — |
Errors this endpoint can return
401 · 404 · 422 · 503