Metrics are real-time widgets that . They are versatile and can include icons, symbols, and be used to display any information you want in any of your projects.
https://api.saashound.co/send-metric
This endpoint allows you to send a metric to SaasHound.
{ success: true, statusCode: 200,}
curl --location --request POST 'https://api.saashound.com/send-metric' \--header 'Authorization: Bearer <TOKEN>' \--header 'Content-Type: application/json' \--data-raw '{ "title": "Users", "value": 1254, "icon": "👥"}'
When sending a metric, you can choose to increment the value of the metric by setting the increment
property to true
. This will add the value to the existing value of the metric.
For example, if you send a metric with a value of 1254 and then send another metric with a value of 5 and increment
set to true
, the value of the metric will be 1259.
curl --location --request POST 'https://api.saashound.com/send-metric' \--header 'Authorization: Bearer <TOKEN>' \--header 'Content-Type: application/json' \--data-raw '{ "project": "my-project", "title": "Customers", "value": 1259, "icon": "👥", "increment": true,}'