Skip to main content
POST
POST /referrer

Get or Create Referrer

This unified endpoint performs two actions:
  1. Get or Create: Checks if a referrer exists for the given uid. If not, creates a new one.
  2. Fetch Progress: Returns the referrer’s current stats, rewards earned, and progress toward the next reward.
Use this endpoint when a user opens the referral section of your app.

Request

string
required
Unique identifier for the user in your app (e.g., user ID, RevenueCat app_user_id)
object
Optional metadata about the referrer (e.g., display name, avatar URL). Only used when creating a new referrer.

Example Request

Response

string
Unique identifier for the referrer
Full URL to the referral landing page
string
Unique slug for the referrer (part of the URL)
string
The metacode that referees will enter in the app (same as referrer_slug)
string
Referrer status: active, paused, or ended
object
General statistics
object
Platform-specific progress details

Example Response

Usage in Mobile App

Error Responses