Referral API for Modern Products
Add an affiliate program to your product in minutes, embedded right inside your app with capacity from $1,000 to $100,000 per month.
Developer Quickstart
Get up and running in three steps.
1Install the tracking script
<script src="https://scripts.refgrowcdn.com/latest.js"
data-project-id="YOUR_PROJECT_ID"></script>2Track signups
// Call after user signs up
Refgrow(0, 'signup', 'user@example.com');3Track purchases
// Call after successful payment
Refgrow(49.99, 'purchase', 'user@example.com');Key Endpoints
/api/v1/affiliatesList all affiliates for your project with stats, referral codes, and earnings.
/api/v1/conversionsRecord a conversion event (signup or purchase) server-side.
/api/v1/conversionsRetrieve conversion history with filters by date, affiliate, and type.
/api/v1/statsGet aggregate stats: clicks, signups, revenue, and active affiliates.
/api/v1/payoutsInitiate payouts to affiliates via PayPal or Wise.
Auth, Errors & Limits
- Authenticate with Bearer token using your API key (prefix: rgk_)
- API keys are hashed and stored securely
- Rate limits: 100 requests per minute per project
- All responses use standard HTTP status codes
- Errors return JSON with descriptive messages
Authorization: Bearer rgk_your_api_key_here
Content-Type: application/jsonKey Features
Everything you need to run a successful affiliate program.
Easy Integration
Embed an affiliate program into your product in minutes with a simple code snippet.
Flexible Tracking
Track via Stripe/LS webhooks or manually via JS. Customize cookies and parameters.
Deep Customization
Customize the design (colors, text, layout) to match your brand perfectly.
Advanced Commissions
Set default rules (%, fixed, duration) and override per-affiliate or per-product.
Global Ready
Multi-language support for the embedded dashboard (EN, RO, UA, DE, ES, FR, IT, PT+).
Developer API
Integrate programmatically with our REST API for full control.
Try Refgrow free today
Set up your affiliate program in minutes and start growing with referrals.