---
title: "Create a referral"
method: POST
path: "/users/me/referrals"
deprecated: true
---

# Create a referral

`POST /users/me/referrals`

> **Deprecated.**

**Deprecated.** This path is the pre-`/v2/` URL for `/v2/users/me/referrals` and is kept only so existing integrations keep working. It behaves identically, responds with a `Sunset` header, and stops being served on 2027-03-01. Move to `/v2/users/me/referrals`.

Create a referral

## Request body

- object
  - `referralCode` string, required

## Response `200`

Successful response

- object
  - `success` boolean, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

## Changes

- **2026-09-03** `c5ba6c2504bb` — 2 info
  - api operation id `referral-create` removed and replaced with `referral-create-legacy`
  - endpoint deprecated

[Change history](https://skmtc.dev/hyperbolic/apis/castle-api/changes/users/me/referrals/post.md)

---

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