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
chevron-right
200

200 OK

application/json
idstringRequired

The newly created identity ID

Example: 48d0e4d6-ebeb-492d-a4c5-643864db18fb
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
chevron-right
200

200 OK

application/json
identityIdstringRequired

The identity ID corresponding to the user

Example: 48d0e4d6-ebeb-492d-a4c5-643864db18fb
urlstring · uriRequired

The url to share with the user to claim the identity and associate it with their platform account

Example: https://quest.heymint.xyz/claim-identity/0cd929f4-8420-4d99-845d-fa4a24cfb32f:48d0e4d6-ebeb-492d-a4c5-643864db18fb:abcd1234
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
chevron-right
200

200 OK

application/json
slugstringRequired

The slug of the newly created event

Example: 17f8124a-08eb-499c-bf40-0779ef8fa6a6
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
chevron-right
200

200 OK

application/json
logIdstringRequired

The ID of the created log entry

Example: cf35edb3-5567-4701-9720-3e48831d0dc0
createdAtstringRequired

The datetime when the log entry was created

identityClaimedbooleanRequired

Whether or not the provided identity has been claimed by a user yet

Example: true
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
chevron-right
200

200 OK

application/json
logIdstringRequired

The ID of the newly created log entry

Example: cf35edb3-5567-4701-9720-3e48831d0dc0
identityClaimedbooleanRequired

Whether or not the provided identity has been claimed by a user yet

Example: true
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
chevron-right
200

200 OK

application/json
get
v1/events/logs

Last updated