For the complete documentation index, see llms.txt. This page is also available as Markdown.

Webhooks

Webhooks

Webhooks are used to send events from SparkLoop to your server. We send a POST HTTP request with a JSON payload when specific events occur.

Create a webhook

To create a webhook:

Update/delete a webhook

To update or delete a webhook hover over the three dots to the right of the webhook to open the settings menu and click on the link to update or delete.

Test a webhook

To test a webhook hover over the three dots to the right of the webhook to open the settings menu and click on "Send test webhook"

Authentication token

SparkLoop authenticates all webhooks with a token in the SparkLoop-Token request header. This allows you to verify that the events were sent by SparkLoop, not by a third party.

While this is entirely optional, it adds an extra layer of security: simply check the token in the SparkLoop-Token header is the same as your authentication token. If not, ignore the webhook!

You can find your authentication token in your Webhooks page.

Events

new_referral

Is sent when a new referral made by a subscriber in a referral program is tracked

new_partner_pending_referral

Is sent when a referral made by a partner is starts the screening period

new_partner_referral

Is sent when a referral made by a partner is confirmed

new_offer_lead

Is sent when a new lead is confirmed

new_opportunity

Is sent when an enriched subscriber's sponsorship opportunity score first reaches the opportunity threshold (70 or higher). SparkLoop sends this webhook only once per subscriber — when they first qualify — not on subsequent score updates.

You can enable this event from Account Settings > Integrations or from the Opportunities page in your dashboard.

The payload includes the same person, company, and score fields as the Opportunities CSV export. Internal scoring reasoning is not included. The company object may be omitted if no company data is available.

new_survey_response

Is sent when a subscriber completes a Welcome Survey. SparkLoop sends this webhook for every new survey submission.

reward_unlocked

Is sent when a subscriber hits a milestone and unlocks a reward

reward_redeemed

Is sent when a subscriber redeems a reward by submitting their address details.

sync_subscriber

Is sent when a referral is created or updated.

Errors

Please send back a blank response with a status code of 200. All not-200 responses will be considered errors.

Last updated

Was this helpful?