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

# Get or create a referral code for the authenticated user

`POST /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 `201`

Referral code for the authenticated user

- CreateReferralCodeResponseDto
  - `code` string, required

## Other responses

- `401` — Unauthorized

---

[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)
