Introduction
Onari adds challenges, streaks, leaderboards, referrals and trivia to your app, and tells you when to pay out rewards.
Onari is gamification infrastructure for apps in Africa. Your server sends Onari the things your customers do (an order, a transfer, a top-up). Your team builds campaigns around them in the Onari dashboard. Onari tracks every player's progress, decides who wins, keeps to your budget, and tells your server to pay out.
How it fits together
- Your server sends events.
POST /v1/eventswith a player ID you choose and an event likeorder.placed. See Events. - Your team runs campaigns. Challenges, streaks, leaderboards, referrals and trivia, each with a reward, a budget and an audience. See Campaigns.
- Onari picks the winners. Exactly once per win, never past your budget, even when events arrive at the same time.
- You pay out. Onari sends a signed
reward.issuedwebhook to your server. Voucher codes are handed out by Onari itself. See Webhooks. - Players see it all in the Rewards Hub, a white-label page you open inside your app. See Rewards Hub.
Where to start
Quickstart
Send your first event and see a sandbox reward in about 10 minutes.
Webhooks
Pay players when they win, safely and exactly once.
Rewards Hub
Open your players' rewards page in a WebView.
Build with an AI agent
Point Cursor, Claude or ChatGPT at these docs.
The basics
- Base URL:
https://api.onari.xyz - Auth: your secret key in
Authorization: Bearer sk_test_…(sandbox) orsk_live_…(live). Only call Onari from your server. - Amounts are integers in minor units:
250000is ₦2,500.00. - Player IDs are yours. Never send names, phone numbers, emails or BVN.