The Log Event route is the API endpoint for pushing your events to SaasHound. You can use it to log any event in your app, service, or system. Your events will be stored by your project and your specified channels.
https://api.saashound.co/log-event
This endpoint allows you to send log events to SaasHound.
{ success: true, statusCode: 200,}
curl --location --request POST 'https://api.saashound.com/log-event' \--header 'Authorization: Bearer <TOKEN>' \--header 'Content-Type: application/json' \--data-raw '{ "project": "my-website", "channel": "billing", "title": "Payment Received", "message": "A payment has been received for an invoice.", "icon": "💸", "notify": true, "tags": { "invoiceId": "123" }}'
You may add historical logs to SaasHound by adding a timestamp parameter to your logs. The timestamp parameter should be a unix timestamp in seconds. Remember that you will not receive a push notification for historical logs.