---
title: "Create Custom Referral Link"
method: POST
path: "/admin/custom-referral-links"
tags: ["General APIs with JWT"]
---

# Create Custom Referral Link

`POST /admin/custom-referral-links`

Create a new custom referral link (admin only).

## Request body

- CreateCustomReferralLinkRequest
  - `credit_amount` number, required — Amount of credits to grant on signup
  - `expires_at` string, date-time, nullable — Expiration date (optional)
  - `description` string, nullable — Optional description

## Response `201`

Successful Response

- CustomReferralLinkResponse
  - `id` string, uuid, required
  - `code` string, required
  - `admin_id` string, uuid, required
  - `credit_amount` number, required
  - `expires_at` string, date-time, nullable, required
  - `is_used` boolean, required
  - `is_active` boolean, required
  - `description` string, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable, required
  - `encrypted_code` string, required — Return encrypted version of the code for frontend use.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/lium/apis/lium-backend-api.md) · [All operations](https://skmtc.dev/lium/apis/lium-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lium/lium-backend-api/revisions/57db0a9348db/schema)
