Skip to main content
POST
Create or update a CDP event schema

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Body

application/json
event_type
string
required

Customer-defined event name (e.g. "Order Completed").

Required string length: 1 - 200
json_schema
object

JSON Schema validated against each incoming event of this type.

enforcement_mode
enum<string>
default:off
Available options:
strict,
warn,
off
description
string | null
Required string length: 1 - 500

Response

200 - application/json

The created or updated event schema

data
object

A registered CDP event schema — a JSON Schema bound to a named event type plus the enforcement mode applied to matching /track events (off = passthrough, warn = log violations, strict = reject).

meta
object