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/log
Base URLhttps://api.lynkow.com/public/{siteId}

Request bodyrequired

  • actionenumrequired

    Required. One of: accept_all, reject_all, customize, withdraw

    One of: accept_allreject_allcustomizewithdraw

  • pageUrlstring

    Max 2048 characters

  • sessionIdstring

    Analytics session ID

  • visitorIdstringrequired

    Required. 1-64 characters

  • consentGivenobjectrequired

    Required

Feedback

Was this page helpful?