---
title: "Validate invite code"
method: GET
path: "/api/invites/{code}"
tags: ["User"]
---

# Validate invite code

`GET /api/invites/{code}`

## Request

- Base URL: `https://app.d-sports.org`
- URL: `https://app.d-sports.org/api/invites/{code}`
- Auth: none required

Public validate. Never leaks VIP issuer identity.

## Path parameters

- `code` string, required

## Response `200`

{ success, data: InvitePublicView }

- InvitePublicSuccess
  - `success` true, required
  - `data` InvitePublicView, required
    - `valid` boolean, required
    - `kind` 'CAMPAIGN' | 'VIP' | 'REFERRAL', required
    - `label` string, nullable, required
    - `expiresAt` string, nullable, required

## Other responses

- `400`: Invite code is required
- `404`: Invite code not found

## Changes

- **2026-09-24** `01971acf764b`: 3 info
  - 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 `404`
- **2026-09-12** `c191eafc1801`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/changes/api/invites/:code/get.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)
