---
title: "Get a referral code for the authenticated user"
method: GET
path: "/points/referral-code"
tags: ["points"]
---

# Get a referral code for the authenticated user

`GET /points/referral-code`

Returns the user’s existing referral code if one was already generated; otherwise creates a new code via Fuul and persists it. Safe to call repeatedly.

## Response `200`

Referral code for the authenticated user

- CreateReferralCodeResponseDto
  - `code` string, required

## Other responses

- `401` — Unauthorized
- `404` — Referral code not found

---

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