# What is Microsoft Clarity Consent API?

> For the complete site index, see [llms.txt](/llms.txt). Every page is also available as Markdown: replace the trailing slash with `.md` (`/pricing/` becomes `/pricing.md`), or send `Accept: text/markdown` to the page URL itself.

---

**Category:** Cookie Consent
**Last updated:** June 25, 2026
**URL:** https://www.cookieyes.com/knowledge-base/cookie-consent/what-is-microsoft-clarity-consent-api/

---

The Microsoft Clarity Consent API is a JavaScript interface used to communicate a website visitor’s cookie consent choice to Microsoft Clarity. It ensures that Clarity only activates tracking, like setting first-party and third-party cookies, session recordings, heatmaps, and analytics, after the user has granted explicit consent. If consent is denied, Clarity switches to a no-consent mode where no cookies are set and limited, cookieless tracking occurs (assigning a unique ID per page view without persisting sessions).
This API helps website owners comply with privacy regulations such as the GDPR, UK GDPR, and ePrivacy Directive.
Starting **31 October, 2025**, Microsoft Clarity will enforce consent signal requirements in the EEA, UK, and Switzerland.
For more details, check out our guide on [Microsoft Clarity Consent API](https://www.cookieyes.com/blog/microsoft-clarity-consent-api-explained/).
