CMP API
A CMP API is a programming interface that a consent management platform (CMP) provides so that websites, apps, and other digital products can connect to it and work with a user's privacy and cookie choices. It lets developers integrate consent functionality into their own products and read or act on the preferences a user has been shown and has agreed to or declined. Note that some products use the term 'CMP' to mean a content marketing platform rather than a consent management platform, so the same acronym can refer to unrelated tools.
In the consent context, a CMP API is the interface a consent management platform exposes to callers (web and in-app) to access information about the privacy preferences disclosed to and obtained from a user, as defined for example in the IAB Global Privacy Platform CMP API Specification. Implementations vary: client-side APIs surface consent state to on-page or in-app callers, while server-side variants compute CMP functions server-side (for instance to enhance performance on web-based CTV platforms), which typically requires developers to build their own UI. Vendors also offer integration or REST APIs enabling website builders and digital agencies to embed CMP functionality into existing products. A CMP API supports technical integration of consent signaling but does not by itself determine whether consent obtained is valid under the ePrivacy rules governing access to information on a device or under the GDPR; those remain matters of legal configuration and judgment. The specific data model, signals, and behavior depend on the particular CMP and specification implemented, which is out of scope for this definition. Be aware that 'CMP API' is also used by content marketing platforms (a distinct, non-consent product category) and those usages fall outside this entry.
Why it matters
For most digital products, a CMP API is the connective layer that carries a user's cookie and privacy choices from the consent interface into the systems that act on them. Without a reliable way to read and pass consent state, tags, scripts, SDKs, and advertising integrations cannot know whether they are permitted to run for a given user. This makes the CMP API central to operationalizing consent: the legal decision to obtain opt-in consent (as generally required for non-essential cookies in most EU jurisdictions) or to honor opt-out signals (as commonly relied upon under US state privacy laws such as those in California) has to be enforced somewhere, and the CMP API is often where that enforcement is wired in.
The stakes are practical. If a CMP API is misconfigured, or if downstream tools ignore or misread the consent state it exposes, trackers can fire before or against a user's choices even though a consent banner appears to be working. That kind of gap between what a user was shown and what actually executed is precisely the sort of discrepancy that data protection authorities and private litigants scrutinize. It is worth stressing that a CMP API supports technical integration of consent signaling but does not by itself determine whether the consent obtained is valid under the ePrivacy rules governing access to information on a device or under the GDPR; those remain matters of legal configuration and judgment.
A further, more mundane risk is terminological confusion. The same acronym 'CMP' is used by content marketing platforms, which expose their own unrelated APIs, so teams evaluating or procuring tools should confirm they are looking at a consent management platform rather than a content marketing platform before drawing any compliance conclusions.
Who it's relevant to
Inside CMP API
Common questions
Answers to the questions practitioners most commonly ask about CMP API.

