---
title: "Set custom referral code (one-time only)"
method: POST
path: "/v1/users/me/referral-code"
tags: ["user"]
---

# Set custom referral code (one-time only)

`POST /v1/users/me/referral-code`

## Request body

- object
  - `code` string, required

## Response `200`

Successful response

- object
  - `success` boolean, required
  - `referral_code_alt` string, required

## Other responses

- `404` — Resource not found

---

[API](https://skmtc.net/legend/apis/legend-api.md) · [All operations](https://skmtc.net/legend/apis/legend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/legend/legend-api/versions/6ac390b7bb0b/schema)
