Skip to content

Track Events

Use our track events endpoint to track any type of event.

Request

POST https://api.logspot.io/track

Request body:

{
name: "ImageGenerated",
user_id: "[email protected]",
metadata: {
img_id: "j1i2if99a",
},
}

Params:

  • name - event name e.g. GroupCreated
  • user_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';
}