Skip to main content
Receive real-time notifications when events happen in your BaClique account.

Overview

Webhooks allow your application to be notified immediately when:
  • A new conversion is tracked
  • A conversion is approved or rejected
  • An affiliate joins your campaign
Instead of polling the API, you receive a POST request to your endpoint.

Setting Up Webhooks

1. Create an Endpoint

Go to Developer Settings and:
  1. Click “Add Endpoint”
  2. Enter your HTTPS URL
  3. Select the events to subscribe to
  4. Save and copy the signing secret
⚠️ Important: The secret is only shown once. Store it securely!

2. Handle Incoming Webhooks

Your endpoint will receive POST requests like this:

Available Events


Event Payloads

conversion.created

conversion.approved / conversion.rejected

affiliate.joined


Verifying Signatures

Always verify webhook signatures to ensure requests are from BaClique.

Signature Format

  • t = Unix timestamp when signed
  • v1 = HMAC-SHA256 signature

Verification Algorithm

Node.js Example

Python Example


Retry Policy

If your endpoint returns a non-2xx status code, we retry: After 3 failed attempts, the webhook is marked as failed.

Best Practices

  1. Always verify signatures - Don’t trust unverified webhooks
  2. Return 200 quickly - Process asynchronously if needed
  3. Handle duplicates - Use event.id for idempotency
  4. Use HTTPS - We reject HTTP endpoints
  5. Implement retry handling - Your endpoint should be idempotent