Track Events
Use our track events endpoint to track any type of event.
Request
POST https://api.logspot.io/track
Request body:
{ name: "ImageGenerated", 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';}