Developer API
Everything you can do in the dashboard, you can do over a clean REST API.
Authentication
Management endpoints authenticate with a scoped bearer token you generate in your workspace. The public tracking endpoints authenticate with your project's tracking key or snippet id.
Authorization: Bearer <your-api-token>
Delivering experiment config
The snippet fetches a project's running experiments and variants:
GET /api/v1/config/{snippet_id}
Tracking events
Record exposures and conversions โ single or in batches:
POST /api/v1/track
POST /api/v1/track/batch
{
"project_id": "snp_...",
"visitor_uid": "v_abc123",
"event_type": "conversion",
"experiment_id": "...",
"variant_id": "...",
"goal_id": "...",
"revenue": 49.90
}
Managing resources
Create and manage projects, experiments, variants, goals and read statistics programmatically:
GET /api/v1/projects
POST /api/v1/experiments
POST /api/v1/experiments/{id}/start
GET /api/v1/experiments/{id}/stats
Full endpoint reference lives in the documentation. Questions? Get in touch.