Webhook endpoint and usage tracking
The Sources tab manages your org's inbound webhook URL and shows month-to-date usage.
Generating a webhook URL:
1. Go to Data Stream → Sources
2. Click "Generate Webhook URL"
3. A unique URL is created for your org — it includes your org ID and a secure token
Using the webhook:
• Send a POST request with a JSON body containing a "records" array (or any raw data structure)
• Data Stream processes the payload and writes a job to History automatically
• Set a "Default destination" in the Sources tab so inbound data always routes to the right place
Example (curl):
curl -X POST 'https://…/dataStreamWebhook?orgId=abc&token=xyz' -H 'Content-Type: application/json' -d '{"records": [{"name": "Alice", "role": "admin"}]}'
Regenerating the token:
• If your webhook URL is compromised, click "Regenerate token"
• This immediately invalidates the old URL — update any external services that use it
Month-to-date usage:
• The Sources tab shows the number of jobs run, input tokens, output tokens, and total charges for the current month
• These charges appear as a line item on your monthly Turtini invoice