API

Identities

Create identity

post

Creates a new identity

Authorizations
x-api-keystringRequired

Your platform API key

Header parameters
x-api-keystringRequired

Your platform API key

Body
uniqueIdentifierstringOptional

Your own unique identitier for the identity. If the same unique identifier is used multiple times, the same identity will be returned.

Example: abcd1234
Responses
200

200 OK

application/json
post
v1/identities

Create identity association URL

post

Generates a url that can be shared with a user to associate an identity with their account on the platform

Authorizations
x-api-keystringRequired

Your platform API key

Path parameters
identityIdstringRequired
Header parameters
x-api-keystringRequired

Your platform API key

Responses
200

200 OK

application/json
post
v1/identities/{identityId}/association

Events

Create an event

post

Creates a new event for an action that will take place outside of the platform

Authorizations
x-api-keystringRequired

Your platform API key

Header parameters
x-api-keystringRequired

Your platform API key

Body
namestring · min: 1Required

Name of the event

Example: Level Up
slugstring · min: 1 · max: 60Required

Event slug (used to call the event log api)

Example: level_up
Responses
200

200 OK

application/json
post
v1/events

Log an event

post

Creates an event log for the occurance of an event

Authorizations
x-api-keystringRequired

Your platform API key

Header parameters
x-api-keystringRequired

Your platform API key

Body
and
anyOptional
or
Responses
200

200 OK

application/json
post
v1/events/logs

post

Creates an event log for the occurance of an event

Authorizations
x-api-keystringRequired

Your platform API key

Header parameters
x-api-keystringRequired

Your platform API key

Body
identityIdstringRequired

The identity ID corresponding to the user

Example: 48d0e4d6-ebeb-492d-a4c5-643864db18fb
eventIdstringRequired

The ID of the event to log

Example: 37aff86c-fb50-40cb-8785-0629c38c4f4c
uniqueIdentifierstringOptional

Your own unique identitier for this particular instance of the event taking place. If the same unique identifier is used multiple times for the same event, it will not create additional logs. This can be useful to ensure that you do not accidentally log the same event occurance more than once.

Example: abcd1234
Responses
200

200 OK

application/json
post
v1/events/logs

List event logs

get

List event logs

Authorizations
x-api-keystringRequired

Your platform API key

Query parameters
eventIdstringOptional

An event ID (or a comma-separated list of IDs) to filter by

identityIdstringOptional

An identity ID (or a comma-separated list of IDs) to filter by

afterstringOptional

For cursor-based pagination, specify the id of the last log entry you've seen

limitnumber · min: 1 · max: 200Optional

The maximum number of log entries to return

Default: 100
Header parameters
x-api-keystringRequired

Your platform API key

Responses
200

200 OK

application/json
get
v1/events/logs

Last updated