---
title: "Create Referral Link"
method: POST
path: "/creator/links"
tags: ["creator"]
---

# Create Referral Link

`POST /creator/links`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/creator/links`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Create a new referral link.

## Request body

- ReferralLinkCreate: Schema for creating a referral link.
  - `target_type` string, required
  - `target_id` string, uuid, nullable
  - `custom_code` string, nullable
  - `campaign_name` string, nullable
  - `utm_source` string, nullable
  - `utm_medium` string, nullable
  - `utm_campaign` string, nullable
  - `expires_at` string, date-time, nullable

## Response `200`

Successful Response

- ReferralLinkResponse: Schema for referral link response.
  - `id` string, uuid, required
  - `creator_id` string, uuid, required
  - `code` string, required
  - `short_code` string, nullable
  - `target_type` string, required
  - `target_id` string, uuid, nullable
  - `campaign_name` string, nullable
  - `utm_source` string, nullable
  - `utm_medium` string, nullable
  - `utm_campaign` string, nullable
  - `is_active` boolean, required
  - `expires_at` string, date-time, nullable
  - `click_count` integer, required
  - `unique_visitors` integer, required
  - `conversion_count` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable
  - `short_url` string, nullable
  - `full_url` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/meganova/apis/meganova-api.md) - [All operations](https://skmtc.dev/meganova/apis/meganova-api/llms.txt) - [OpenAPI document](https://skmtc.dev/meganova/apis/meganova-api/revisions/c683584f6060?raw)
