---
title: "Claim Referral"
method: POST
path: "/api/referral/claim/{user_id}"
tags: ["Referral"]
---

# Claim Referral

`POST /api/referral/claim/{user_id}`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/referral/claim/{user_id}`
- Auth: HTTP bearer

Claim a referral reward after a new user signs up with a referral code.
Awards 1 month free premium to both referrer and referred user.

## Path parameters

- `user_id` string, uuid, required

## Request body

- AppApiReferralClaimRequest
  - `referral_code` string, required

## Response `200`

Successful Response

- ClaimResponse
  - `success` boolean, required
  - `message` string, required
  - `premium_months_awarded` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
