API ReferenceConsent

Record a consent update

Record a partial consent-category update plus privacy signals from a consent source (the Logspot Consent API / setConsent(), or a CMP adapter).

POST
/consent
x-logspot-pk<token>

Project public key (prefixed pk_). Safe to expose in client-side code.

In: header

anonymous_id?string|null
user_id?string|null
analytics?boolean|null
functional?boolean|null
marketing?boolean|null
doNotSellShare?boolean|null
gpc?boolean|null
gppDetected?boolean|null
gppString?string|null
gppSections?|null
sourcestring
Lengthlength <= 32
sourceMetadata?|null
identity_verification?|null

Response Body

curl -X POST "https://api.logspot.io/consent" \  -H "Content-Type: application/json" \  -d '{    "source": "string"  }'
Empty
Empty
Empty