Відстежуйте відкриття й кліки, передавайте події через вебхуки та контролюйте використання.
curl -X POST https://api.trackkit.io/message/create \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"recipient": "user@example.com", "subject": "Your order #1024"}'
# Response
{
"message_uuid": "ab1d9f…",
"tracking_pixel": "https://api.trackkit.io/t/eyJh….png",
"link_prefix": "https://api.trackkit.io/c/eyJh…?u="
}
<!-- Wrap links: link_prefix + URL-encoded destination -->
<a href="{link_prefix}https%3A%2F%2Fshop.com%2Forders%2F1024">
View your order
</a>
<!-- Pixel before </body> -->
<img src="{tracking_pixel}" width="1" height="1" alt="">
<!-- Opens and clicks appear in the dashboard
and arrive at your webhook as signed JSON -->