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.
Where to find your Workspace API key
To access the Profiles and Query API, include your workspace API key in your request headers as a Bearer token:
Authorization: Bearer <your_workspace_api_key>
API Authentication Flow Diagram

SDK Write Key

Find your SDK Write Key in your project settings.
Tokens in project settings page
To send events through the Events API, include the SDK Write Key in your request headers:
Authorization: Bearer <token>