curl. You’ll need:
- An API key. See how to get one.
- A program to test with, created in the Hoppier dashboard.
- An email address of your own to add.
1
Check your key
401 means the key is wrong or has been switched off.2
Find your program
id of your test program. A program’s amount is in cents: 2500 is $25.00.3
Add a participant
Idempotency-Key makes the request safe to retry: send it again with the same key and body, and the person is still added only once.Without sendEmailAsUsersAreAdded, Hoppier doesn’t email the person.4
Send them their link
inviteUrl is the person’s link to claim their reward. It’s valid for 30 days. Send it to them in your own email or app, and only to them: anyone who has the link can use it.Would you rather Hoppier sent the invite? Add "sendEmailAsUsersAreAdded": true to the request, and Hoppier emails the program’s invite.Next steps
Webhooks
Hear when the reward is ready.
Errors and retries
Handle failures safely.
API reference
Every field and error.