API
Track Events
Track events by posting to our track endpoint.
Use our track events endpoint to track any type of event.
Request
POST https://api.logspot.io/trackRequest body:
{
name: "ImageGenerated",
user_id: "jack@dotson.com",
metadata: {
img_id: "j1i2if99a",
},
}Params:
name- event name e.g. GroupCreateduser_id(optional) - unique user id which will link the event to a specific user. It can be integer, UUID or even an email.metadata(optional) - you can attach a JSON object to your event.
Response
HTTP 200
{
message: 'Event tracked successfully';
}