Developer
Cookie consent
POST
/api/public/consent
Public · no auth
Record a cookie-consent choice
Record one cookie-consent decision for a Landing tag container. Sent automatically by the Landing tag's consent banner; sites using their own banner can call LT.consent.accept() / reject() instead. Silently ignores bots, unknown containers and containers without consent.
Rate limited.
Body parameters
|
c
string
optional
|
The container code, e.g. LT-ABC123. |
|
id
string · identifier
optional
|
The visitor's consent ID (xxxx-xxxx-xxxx-xxxx), shown in their privacy choices. |
|
a
string
optional
|
accept_all, reject_all, custom, withdraw or notice_ok. |
Responses
204
(no body)
curl -X POST https://landing.pivotal.digital/api/public/consent -H 'Content-Type: text/plain' \
-d '{"c":"LT-ABC123","id":"1a2b-3c4d-5e6f-7a8b","a":"reject_all","p":0,"s":0,"m":0}'
response
(no body)
Landing Platform