Log a cookie consent action
Record the visitor's cookie-consent choice. Stores the consent decision (per-category booleans plus a top-level "all accepted" marker), the resolved consent mode, the user-agent, and the timestamp. The endpoint is spam-protected on the same contract as form submissions, but typical clients hit it once per session. Status code: 200, not 201.
POST
/cookie-consent/logBase URL
https://api.lynkow.com/public/{siteId}Request bodyrequired
actionenumrequiredRequired. One of: accept_all, reject_all, customize, withdraw
One of:
accept_allreject_allcustomizewithdrawpageUrlstringMax 2048 characters
sessionIdstringAnalytics session ID
visitorIdstringrequiredRequired. 1-64 characters
consentGivenobjectrequiredRequired