Skip to main content
POST
Track an event

Authorizations

Authorization
string
header
required

Your project's publishable key (pk_pub_…). Safe to expose in the browser — it identifies the project and is rate-limited, not secret.

Body

application/json
userId
string
required
Maximum string length: 256
Example:

"user_123"

event
string
required

Event name. Use stable, snake_case names.

Maximum string length: 80
Example:

"activated_workspace"

props
object

Optional event properties (max 4 KB serialized). The browser SDK adds $current_url and $pathname automatically.

Example:
eventId
string
Required string length: 1 - 128

Response

Success.

ok
boolean
required