Skip to content

Webhooks

Webhooks are unique per project and you can create multiple projects to separate your events if needed. You can find your webhook url on Projects page.

POST https://api.logspot.io/hooks/XXXXXXXXXXXX/YYYYYYYYYYY
// BODY
{
name: "UserSubscribed",
notify: true,
message: "New subscription",
user_id: "[email protected]",
metadata: { additionalData: "123" },
}

Webhook Schema

  • 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.
  • notify (optional) - triggers mobile notifcation.
  • message (optional | max 255 chars) - messaged displayed in the app and in the notification.