curl --location --request POST 'https://aff-api.uppromote.com/api/v2/webhook-subscriptions' \
--header 'Accept: application/json' \
--header 'Authorization: {{API_UPROMOTE_TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"target_url": "string",
"event": "referral.new"
}'
{
"status": 200,
"message": "success",
"data": {
"target_url": "https://example.com/api/referral-approved",
"event": "referral.approved",
"event_name": "Referral Approved",
"version": "v1.0",
"status": "active",
"secret_key": "66724bc0-b9bd-434d-8cdc-********",
"created_at": "2025-09-23T16:52:23Z",
"updated_at": "2025-09-23T16:52:23Z"
}
}