SDK/Integration 2026-03-24 by RewardingHub Team

Postback Setup Guide: Server-to-Server Reward Delivery

Postback Setup Guide: Server-to-Server Reward Delivery

Setting up postbacks is the most important step after SDK integration. Here is the complete guide.

Why Postbacks Matter

Client-side callbacks fail when users close your app or lose connection. Server-to-server postbacks ensure every reward is delivered reliably.

Step 1: Create Your Endpoint

# Python (Flask)
@app.route('/postback')
def postback():
    user_id = request.args.get('user_id')
    amount = int(request.args.get('amount'))
    sig = request.args.get('sig')
    # Verify signature
    if verify_signature(request.query_string, sig):
        credit_user(user_id, amount)
        return 'OK', 200
    return 'Invalid', 403

Step 2: Configure in Dashboard

Go to your dashboard → SDK → Postback URL and enter your endpoint URL.

Step 3: Test

Use the "Send Test Postback" button in dashboard. Verify your server returns 200.

Full reference: Webhook Integration Guide

Frequently Asked Questions

How do I verify postback signatures?
Use HMAC-SHA256 with your API secret. Code examples in our webhook guide.
What if my server returns an error?
We retry 5 times over 24 hours with exponential backoff.

Related Articles

Ready to Get Started?

Join 500+ publishers using RewardingHub to grow their games.