---
title: "Get user's referral code"
method: GET
path: "/referral"
tags: ["referral"]
---

# Get user's referral code

`GET /referral`

Returns the unique referral code for the authenticated user's wallet. Initializes a referral record if none exists.

## Response `200`

OK

- InternalHandlersReferralResponse
  - `code` string
  - `referrer` string

## Other responses

- `400` — No wallet linked
- `401` — Unauthorized

---

[API](https://skmtc.dev/grambo/apis/grambo-api.md) · [All operations](https://skmtc.dev/grambo/apis/grambo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/grambo/grambo-api/revisions/5d88d65e212e/schema)
