Webhooks
Create new webhook
POST
https://api.sparkloop.app/v2/webhooks
Request Body
Name | Type | Description |
---|---|---|
url* | String | Webhook's URL |
new_referral | boolean | If you want to receive webhook notifications for new referrals in referral programs |
reward_unlocked | boolean | If you want to receive webhook notifications when rewards are unlocked |
new_partner_referral | String | If you want to receive webhook notifications for new referrals from partners |
reward_redeemed | String | If you want to receive webhook notifications when rewards are redeemed |
Get webhooks
GET
https://api.sparkloop.app/v2/webhooks
Webhooks are returned in descending order of creation.
Get a webhook by UUID
GET
https://api.sparkloop.app/v2/webhooks/:identifier
Path Parameters
Name | Type | Description |
---|---|---|
identifier* | String | Webhook's UUID |
Update a webhook
PUT
https://api.sparkloop.app/v2/webhooks/:identifier
Path Parameters
Name | Type | Description |
---|---|---|
identifier* | String | Webhook's UUID |
Request Body
Name | Type | Description |
---|---|---|
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 |
new_partner_referral | String | If you want to receive webhook notifications for new referrals from partners |
reward_redeemed | String | If you want to receive webhook notifications when rewards are redeemed |
Delete a webhook
DELETE
https://api.sparkloop.app/v2/webhooks/:identifier
Path Parameters
Name | Type | Description |
---|---|---|
identifier* | String | Webhook's UUID |
Last updated