Truth Satellite supports real-time webhooks that notify users when classified intelligence matches their predefined criteria. This guide explains how to set up, configure, and manage webhook notificat
πΉ What Are Webhooks?
Webhooks allow your systems to receive real-time alerts when intelligence reports meet specific conditions. Instead of constantly polling the API, your server will receive instant updates whenever relevant intelligence data becomes available.
π¨ Example Use Cases:
β Get notified about insider trading alerts before market movements.
β Track diplomatic meetings between high-profile figures.
β Monitor classified financial transactions and offshore movements.
πΉ Setting Up a Webhook Subscription
To receive webhook notifications, send a POST request to the /alerts endpoint.
π¨ Code Example: Subscribing to a Webhook
POST /alerts Authorization: Bearer YOUR_API_KEY Content-Type: application/json
Your server must respond with HTTP 200 OK to confirm successful receipt of the webhook.
π¨ Code Example: Handling Webhook in Python Flask Server
If the server does not respond within 5 seconds, the webhook will be retried up to 3 times.
πΉ Managing Webhook Subscriptions
To list all active webhooks:
π¨ Code Example: Fetching Active Webhooks
To delete a webhook subscription:
π¨ Code Example: Removing a Webhook Subscription
πΉ Webhook Best Practices
β Validate the Signature β Always verify webhook authenticity.
β Use HTTPS for Webhooks β Ensure all communication is encrypted.
β Respond Quickly β Acknowledge receipt within 5 seconds.
β Log Webhook Events β Keep track of all received payloads for debugging.