➡️Custom Events API
For more detailed understanding of how users interact with your application, you can track custom events across your application by sending us Custom Events via our API at https://spindl.link/events/server.
To do this, you will need:
Spindl API Key
Properly Formatted events (you can send individual event or an array)
for each event, you can define an object:
Below are several examples for sending an array of events to our API:
Send Custom Events
POST
https://spindl.link/events/server
Sending Custom events via API
Headers
X-API-Key*
String
The API token
Request Body
*
Array
array of events is required to be passed in. Please pass in a array of objects with the following keys: type (required): string
use "CUSTOM" here name (required): string
Min 3 & max 100 characters. Must be lower/uppercase alphanumeric. _:-
symbols & spaces are allowed
properties (optional): Object
Must be a valid JSON object. Max size 16KB & object keys & values cannot exceed 1,000 characters
identity: { address: string (required)
customerUserId: string (required)
} : either address
or customerUserId
is required to help us identify a user.
address
must be a valid wallet address.
cusomerUserId
can be a unique db user id or a unique identifier like email address.
These identifiers are very important part of stitching identities and providing accurate attribution.
Last updated