---
title: "Set user's referrer"
method: POST
path: "/referral"
tags: ["referral"]
---

# Set user's referrer

`POST /referral`

Updates the authenticated user's referrer using a 6-character referral code. Can only be set once.

## Request body

- InternalHandlersSetReferrerRequest
  - `code` string

## Response `200`

OK

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

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