Skip to main content
This walks through the API end to end with curl. You’ll need: Put the key in an environment variable so it stays out of your shell history and your code:
There is no sandbox or test mode. Every key works against your live account: adding a participant adds a real person to a real program and uses one of your invitations. Test on a program you made for the purpose, with your own email addresses.
1

Check your key

A 401 means the key is wrong or has been switched off.
2

Find your program

Copy the id of your test program. A program’s amount is in cents: 2500 is $25.00.
3

Add a participant

The 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.