Add the Sourcepoint unified script snippet to your page <head> with your account-specific accountId, propertyHref, and targetingParams; the snippet bootstraps the Sourcepoint messaging service and installs the __tcfapi stub.
Configure a GDPR TCF message in the Sourcepoint UI, selecting TCF v2 as the framework; this generates the consent string stored in the euconsent-v2 cookie.
Listen for the onConsentReady callback defined in the Sourcepoint configuration to receive the consent string and vendor grants object: window._sp_.config.events.onConsentReady = function(consentUUID, euconsent, vendorGrants) { /* use vendorGrants */ };.
Query a specific vendor's consent via the __tcfapi: window.__tcfapi('getTCData', 2, (tcData, success) => { const hasConsent = tcData.vendorConsents[vendorId]; }, [vendorId]); pass the numeric IAB GVL vendor ID.
For server-side verification, read the euconsent-v2 cookie value and decode it using the @iabtcf/core library to extract purposeConsents and vendorConsents BitFields before serving personalized content.
Use the postCustomConsent Sourcepoint API (POST to the Sourcepoint public API with the consentUUID) only for custom consent states outside the standard TCF flow, such as granting consent programmatically for logged-in SSO users.
Known gotchas
The Sourcepoint onConsentReady callback fires once per page load; if you also need to react to subsequent consent changes (user revisits the privacy manager), listen to the onMessageChoiceSelect callback as well.
Sourcepoint's propertyHref must exactly match the canonical URL of your property as configured in the Sourcepoint UI; a mismatch causes the consent message to fail to load.
The postCustomConsent endpoint modifies consent outside the visible UI — use it only for verifiable user-initiated flows; arbitrary server-side consent overrides violate TCF policy and can lead to CMP de-registration.
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp