---
title: "Create a new referral code"
method: POST
path: "/api/v1/referral_code"
tags: ["referral_code"]
---

# Create a new referral code

`POST /api/v1/referral_code`

Create a new referral code

## Request body

- CreateReferralCodeRequest
  - `code` string, required

## Response `201`

Successful Response

- unknown

## Other responses

- `401` — Authentication required.
- `403` — Access denied.
- `404` — The requested resource was not found.
- `422` — Validation error. Please check your input.

---

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