---
title: "Get Or Create Code"
method: GET
path: "/api/referral/code"
tags: ["referral"]
---

# Get Or Create Code

`GET /api/referral/code`

## Request

- Base URL: `https://api.equity-rank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.equity-rank.com/api/referral/code`
- Auth: HTTP bearer

Return the current user's referral code and link.
Creates one if none exists yet.
Also returns total_referred and bonus_days_earned for display.

## Response `200`

Successful Response

- object

---

[API](https://skmtc.dev/equity-rank/apis/equity-rank-api.md) · [All operations](https://skmtc.dev/equity-rank/apis/equity-rank-api/llms.txt) · [OpenAPI document](https://skmtc.dev/equity-rank/apis/equity-rank-api/revisions/c2f2463fee33?raw)
