Skip to main content
All API endpoints require authentication using either:
  • a Workspace API Key to query data and fetch profiles
  • a SDK Write Key to send events
You’ll need to include the key or token in the request headers for all API calls.

Workspace API Key

Find your API key in your workspace settings. Create one with the appropriate scope if you don’t have one yet.
Workspace API keys require a Scale or Enterprise plan. Upgrade your workspace to create one.
To access the Profiles and Query API, include your workspace API key in your request headers as a Bearer token:

API Scopes

When creating a Workspace API Key, select the scopes your key needs. Each API endpoint requires a specific scope.
Write scopes automatically require the corresponding read scope. Create keys with the required scopes in Team Settings > API.

SDK Write Key

Find your SDK Write Key in your project settings.
To send events through the Events API, include the SDK Write Key in your request headers: