---
title: "Claim Referral Endpoint"
method: POST
path: "/api/referral/claim"
---

# Claim Referral Endpoint

`POST /api/referral/claim`

Attribute the (new) caller to a referral code and grant the referee
benefits — a 3-day Plus taste + the one-time first-month-¥9 Plus offer.
Called by the SPA right after signup when a `?ref=` code is present.
Idempotent + best-effort; returns `{ok, reason?}` (never raises).

## Headers

- `authorization` string, nullable

## Request body

- ReferralClaimIn
  - `code` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/omicos/apis/omicos-server.md) · [All operations](https://skmtc.dev/omicos/apis/omicos-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/omicos/omicos-server/revisions/a00b94573ffe/schema)
