Create Site

Add a new site to an organization.

Create Site

Creates a new site in the specified organization. Requires admin role.

Endpoint

POST /api/v1/organizations/:orgId/sites

Request Body

FieldTypeRequiredDescription
domainstringYesSite domain (e.g. example.com)
namestringNoDisplay name
timezonestringNoIANA timezone (default: UTC)

The response includes a public_id — this is the site key used in the tracking script.

This endpoint requires JWT authentication and is not accessible via API key.