---
title: "Redeem invite code"
method: POST
path: "/api/invites/{code}/redeem"
tags: ["User"]
---

# Redeem invite code

`POST /api/invites/{code}/redeem`

## Request

- Base URL: `https://app.d-sports.org`
- URL: `https://app.d-sports.org/api/invites/{code}/redeem`
- Auth: HTTP bearer

Clerk-authenticated. New signups only.

## Path parameters

- `code` string, required

## Request body

- RedeemInviteBody
  - `platform` string

## Response `200`

{ success, data: InviteRedeemView }

- InviteRedeemSuccess
  - `success` true, required
  - `data` InviteRedeemView, required
    - `code` string, required
    - `kind` 'CAMPAIGN' | 'VIP' | 'REFERRAL', required
    - `alreadyRedeemed` boolean, required

## Other responses

- `400`: Validation error
- `401`: Authentication required
- `404`: Invite code or user not found
- `409`: Already redeemed, revoked, expired, or exhausted

## Changes

- **2026-09-24** `01971acf764b`: 6 info
  - added optional request body
  - added the media type `application/json` for the response with the status `200`
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - …2 more
- **2026-09-12** `c191eafc1801`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/changes/api/invites/:code/redeem/post.md)

---

[API](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api.md) - [All operations](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/llms.txt) - [OpenAPI document](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/revisions/63735cf90a04?raw)
