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:
go to your Account Settings > Integrations
enter the URL of your webhook and choose which events you want to receive

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
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?