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

# Get Referral Code

`GET /api/v1/referral/code`

获取或创建用户的推荐码.

## Response `200`

Successful Response

- ReferralCodeResponse — 推荐码响应.
  - `referral_code` string, required
  - `referral_url` string, required

---

[API](https://skmtc.dev/qcode/apis/qcode-web.md) · [All operations](https://skmtc.dev/qcode/apis/qcode-web/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/qcode/qcode-web/revisions/2f2f5f49ffc7/schema)
