This guide shows you how to receive real-time Streak events in Nango by registering a webhook via the Streak API.Documentation Index
Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
How it works
Streak supports outbound webhooks triggered by pipeline or team-level automations. The flow is:- After a connection is created, a post-connection script generates a secret token, registers a webhook with Streak (passing the Nango webhook URL as
targetUrland the token astoken), and stores the token inconnection_config.streakWebhookToken. - When the specified event occurs, Streak sends a POST to Nango with the token in the
X-Streak-Webhook-Tokenheader. - Nango matches the token against
connection_config.streakWebhookTokento identify the correct connection and forwards the event to your app.
Setup
1. Get your Nango webhook URL
Copy the webhook URL from your Streak integration page in the Nango dashboard, under the Webhook URL section.2. Register the webhook via a post-connection script
Use a post-connection-creation script to automatically register the webhook with Streak whenever a new connection is created. The script generates a secret token, registers the webhook with Streak, and stores the token in the connection config for routing:event with the Streak event type you want to subscribe to (e.g. BOX_CREATED, BOX_EDITED). See Streak’s event list for all available events.
3. Handle forwarded webhooks
When a Streak event fires, Nango matches theX-Streak-Webhook-Token header against connection_config.streakWebhookToken to identify the connection, then forwards the event to your app. Example payload structure:
If the
X-Streak-Webhook-Token header is missing, Nango will reject the request. If it does not match any connection’s config.4. Delete the webhook on connection removal
Use apre-connection-deletion script to clean up the Streak webhook when a connection is deleted: