Darkbloom has a referral program that lets you generate a personal referral code and share it with others. When someone uses your code during their first deposit, both parties may receive a benefit. You can manage and track your referrals entirely through the API. This page shows the three steps: registering a code, applying a code, and checking your stats.Documentation Index
Fetch the complete documentation index at: https://docs.darkbloom.dev/llms.txt
Use this file to discover all available pages before exploring further.
Step 1 — Register a referral code
To create a referral code for your account, callPOST /v1/referral/register. This requires authentication.
Step 2 — Apply a referral code
When someone else is making a deposit and has a referral code, they can apply it at checkout time. Pass the code in thereferral_code field when creating a Stripe checkout session:
POST /v1/referral/apply:
Referral codes are validated before the checkout session is created. If the code is invalid, the request will return a
400 error and no checkout session will be started.Step 3 — Check referral stats
To see how many people have used your code and any associated activity, callGET /v1/referral/stats:
Endpoint summary
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/referral/register | Create a referral code for your account |
POST | /v1/referral/apply | Apply a referral code to your account |
GET | /v1/referral/stats | View referral activity and stats |