Webhooks
Create new webhook
POST
https://api.sparkloop.app/v1/campaigns/:campaign_uuid/webhooks
Path Parameters
:campaign_uuid*
String
Campaign's UUID
Headers
X-Api-Key*
String
API Key
Request Body
url*
String
Webhook's URL
new_referral
boolean
If you want to receive webhook notifications for new referrals
reward_unlocked
boolean
If you want to receive webhook notifications when rewards are unlocked
Get webhooks
GET
https://api.sparkloop.app/v1/campaigns/:campaign_uuid/webhooks
Webhooks are returned in descending order of creation.
Path Parameters
:campaign_uuid*
String
Campaign's UUID
Headers
X-Api-Key*
String
Api Key
Get a webhook by UUID
GET
https://api.sparkloop.app/v1/campaigns/:campaign_uuid/webhooks/:uuid
Path Parameters
:uuid*
String
Webhook's UUID
:campaign_uuid*
String
Campaign's UUID
Headers
X-Api-Key*
String
API Key
Update a webhook
PUT
https://api.sparkloop.app/v1/campaigns/:campaign_uuid/webhooks/:uuid
Path Parameters
:uuid*
String
Webhook's UUID
:campaign_uuid*
String
Campaign's UUID
Headers
X-Api-Key*
String
API Key
Request Body
url
String
Webhook's URL
new_referral
boolean
If you want to receive webhook notifications for new referrals
reward_unlocked
boolean
If you want to receive webhook notifications when rewards are unlocked
Delete a webhook
DELETE
https://api.sparkloop.app/v1/campaigns/:campaign_uuid/webhooks/:uuid
Path Parameters
:uuid*
String
Webhook's UUID
:campaign_uuid*
String
Campaign's UUID
Headers
X-Api-Key*
String
API Key
Last updated