---
title: "Post Referral Code"
method: POST
path: "/referral/code"
---

# Post Referral Code

`POST /referral/code`

## Request

- Base URL: `https://api.local-mcp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.local-mcp.com/referral/code`
- Auth: none declared

Idempotently return the owner machine's referral code + shareable link.
The link rides the existing attribution channel via ref=r-<code>.

## Request body

- ReferralCodeRequest
  - `machine_id` string
  - `email` string

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/local-mcp/apis/lmcp-api.md) · [All operations](https://skmtc.dev/local-mcp/apis/lmcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/local-mcp/apis/lmcp-api/revisions/f1f1c502623a?raw)
