Turtini

Webhook endpoint and usage tracking

The Sources tab manages your org's inbound webhook URL and shows month-to-date usage.

Generating a webhook token (org owners and admins):
1. Go to Data Stream → Sources
2. Click "Generate Webhook Token"
3. Copy the token right away. It is shown once and cannot be displayed again: Turtini keeps only a fingerprint of it, not the token itself

Using the webhook:
• POST to the endpoint shown in the Sources tab, sending the token in an Authorization header
• Send 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' -H 'Authorization: Bearer YOUR_TOKEN' -H 'Content-Type: application/json' -d '{"records": [{"name": "Alice", "role": "admin"}]}'

A sender that cannot set headers can put the token in the URL instead (&token=YOUR_TOKEN); the Sources tab offers that URL when the token is created. Headers are preferred because URLs end up in logs.

Lost or compromised token:
• Click "Regenerate token". The old token stops working immediately; update every external service that sends to it
• The Sources tab shows the last four characters of the active token so you can tell which one a sender holds
• "Turn off webhook" removes the token entirely; every sender is refused until a new one is generated

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