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 body
required

  • action
    enum
    required

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

    One of: accept_allreject_allcustomizewithdraw

  • pageUrl
    string

    Max 2048 characters

  • sessionId
    string

    Analytics session ID

  • visitorId
    string
    required

    Required. 1-64 characters

  • consentGiven
    object
    required

    Required

Feedback

Was this page helpful?