---
search:
  tags:
    - Rewards
    - POST
seo:
  description: >-
    Claims a referral code, first come, first served: 409 taken, reserved or…
    Reference for the POST /v1/me/rewards/code endpoint in the INVICTUS API.
sidebar:
  label: Claim a referral code, first come, first served.
  badge: POST
title: Claim a referral code, first come, first served.
type: openapi-operation
---
Claims a referral code, first come, first served: 409 `taken`, `reserved` or `change_cooldown` when it cannot be.

`POST /v1/me/rewards/code`

**Request body** (`application/json`, required)

- `code` (string, required) — The referral code to claim.

Request body example:

```json
{
  "code": "LPMAXI"
}
```

**Responses**

- `200` — Success.
- `400` — Invalid input; \`errors\` names the fields.
- `401` — No session, or it ended.
- `409` — In conflict with the current state.
- `429` — Too many requests; \`retryAfterSeconds\` says when to ask again.
- `500` — Server error.

Response example, 200:

```json
{
  "code": "LPMAXI",
  "link": "http://example.com",
  "changeableAt": 1793145600
}
```
