← Back to overview

Event Schemas

Event schemas define the analytics events that should be tracked during agent sessions. Attach a schema to an experiment to verify that the correct events fire during user journeys.

Paste your API key to use the Try it panels below. Don't have one? Create an account.

POST /api/v1/event-schemas Create a new event schema
ParameterTypeInRequiredDescription
project_iduuidbodyYesID of the project
namestringbodyYesSchema name
platformstringbodyNoAnalytics platform identifier
credentialsjsonbodyNoPlatform credentials for event verification
domainsjsonbodyNoDomains to monitor for events
eventsjsonbodyNoExpected event definitions
cURL
Response
GET /api/v1/event-schemas List event schemas
ParameterTypeInRequiredDescription
limitintegerqueryNoNumber of results to return (default: 20)
cursoruuidqueryNoCursor for pagination
projectuuidqueryNoFilter by project ID
cURL
Response
GET /api/v1/event-schemas/{id} Get event schema by ID
ParameterTypeInRequiredDescription
iduuidpathYesEvent schema ID
cURL
Response
PATCH /api/v1/event-schemas/{id} Update an event schema
ParameterTypeInRequiredDescription
iduuidpathYesEvent schema ID
namestringbodyNoSchema name
credentialsjsonbodyNoPlatform credentials
domainsjsonbodyNoDomains to monitor
eventsjsonbodyNoExpected event definitions
cURL
Response
DELETE /api/v1/event-schemas/{id} Delete an event schema
ParameterTypeInRequiredDescription
iduuidpathYesEvent schema ID
cURL
Response