Microsoft Clarity
Web behavior data exported from Clarity
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- Data export API tokenSecretRequired
Where to find them
- Sign in at clarity.microsoft.com and open your project (you must be a project administrator).
- Go to “Settings” → “Data Export” and click “Generate new API token”.
- Name it (4 to 32 characters, no spaces) and copy the token: it belongs to a single project. Microsoft limit: 10 requests per day per project (the connection test uses one).
Tools (1)
Microsoft Clarity API request
MICROSOFTCLARITY_SEND_REQUESTAuthenticated call to the Microsoft Clarity API (https://www.clarity.ms/export-data/api/v1). Any endpoint of the API is allowed. There is only one endpoint (max. 10 requests per day per project, data from the last 24–72 h, 1,000 rows): GET /project-live-insights?numOfDays=3, GET /project-live-insights?numOfDays=1&dimension1=Device&dimension2=Browser (up to 3 dimensions: Browser, Device, Country/Region, OS, Source, Medium, Campaign, Channel, URL).
Required scopes
No scopes required
Input
Microsoft Clarity API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically.

