---
title: "Get the referral code for a user"
method: GET
path: "/public/communities/{subdomain}/users/{userId}/referral-code"
tags: ["communityMember"]
---

# Get the referral code for a user

`GET /public/communities/{subdomain}/users/{userId}/referral-code`

## Path parameters

- `subdomain` string, required
- `userId` string, uuid, required

## Headers

- `x-api-key` string, required

## Response `200`

200

- object
  - `code` string, required

## Other responses

- `400` — 400
- `401` — 401
- `403` — 403
- `404` — 404
- `409` — 409
- `429` — 429
- `500` — 500

---

[API](https://skmtc.net/zealy/apis/zealy-api.md) · [All operations](https://skmtc.net/zealy/apis/zealy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zealy/zealy-api/revisions/1c24cb9f818b/schema)
