UpPromote Public API
  1. Webhook
UpPromote Public API
  • API overview
  • Affiliate
    • Get affiliates
      GET
    • Get affiliate by ID
      GET
    • Create an affiliate
      POST
    • Approve/Deny affiliate
      POST
    • Set upline for an affiliate
      POST
    • Move an affiliate to a program
      POST
    • Connect a customer to an affiliate
      POST
  • Coupon
    • Get coupons
      GET
    • Assign a coupon to an affiliate
      POST
  • Payment
    • Get unpaid payments
      GET
    • Get paid payments (History)
      GET
    • Count total paid payments
      GET
    • Get a payment by ID
      GET
    • Mark as paid a manual payment
      POST
  • Referral
    • Get list referrals
      GET
    • Get a referral by ID
      GET
    • Create a referral
      POST
    • Add referral adjustment
      POST
  • Webhook
    • Get webhook subscriptions
      GET
    • Subscribe a webhook event
      POST
    • Update a webhook subscription
      PUT
    • Delete a webhook subscription
      DELETE
  • Webhook Event Payload
    • Webhook overview
    • Referral new
      POST
    • Referral approved
      POST
    • Referral denied
      POST
    • Referral status changed
      POST
    • Affiliate new
      POST
    • Affiliate approved
      POST
    • Affiliate inactive
      POST
    • Affiliate status changed
      POST
    • Payment paid
      POST
  1. Webhook

Subscribe a webhook event

POST
/api/v2/webhook-subscriptions

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🔴500Server Error
🟠401Unauthorized
🟠422Parameter Error
Request Request Example
Shell
JavaScript
Java
Swift
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"
}'
Response Response Example
200 - Example 1
{
    "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"
    }
}
Modified at 2025-10-06 04:36:45
Previous
Get webhook subscriptions
Next
Update a webhook subscription
Built with