---
title: "Create a tracking link"
method: POST
path: "/tracking-links"
---

# Create a tracking link

`POST /tracking-links`

Create a new tracking link for the authenticated user.

## Headers

- `X-Fanvue-API-Version` string, required

## Request body

- object
  - `name` string, required — Name of the tracking link
  - `externalSocialPlatform` 'facebook' | 'instagram' | 'other' | 'reddit' | 'snapchat' | 'tiktok' | 'twitter' | 'youtube', required — Social platform

## Response `201`

Tracking link created successfully

- object
  - `uuid` string, uuid, required — Tracking link UUID
  - `name` string, required — Name of the tracking link
  - `linkUrl` string, required — Tracking link URL (e.g., 'fv-123')
  - `externalSocialPlatform` 'facebook' | 'instagram' | 'other' | 'reddit' | 'snapchat' | 'tiktok' | 'twitter' | 'youtube', required — Social platform
  - `createdAt` string, date-time, required — When the link was created
  - `clicks` number, required — Number of clicks on this link
  - `engagement` object, required — Engagement metrics from this tracking link
    - `acquiredSubscribers` number, required — Number of subscribers acquired through this link (first-click attribution - users only counted for the first link they clicked)
    - `acquiredFollowers` number, required — Number of followers acquired through this link (first-click attribution - users only counted for the first link they clicked)
    - `totalSubscribers` number, required — Total count of all users who clicked this link and are currently active subscribers
    - `totalFollowers` number, required — Total count of all users who clicked this link and are currently followers
  - `earnings` object, nullable, required — Earnings from this tracking link (null for newly created links)
    - `totalGross` number, required — Total gross earnings from this link (before fees)
    - `totalNet` number, required — Total net earnings from this link (after fees)

## Other responses

- `400` — Bad Request - API version not supported OR validation failed
- `401` — Unauthorized Response
- `403` — Unauthorized Response
- `410` — API version no longer supported (sunset)
- `429` — Too many requests - rate limit exceeded

---

[API](https://skmtc.net/fanvue/apis/fanvue-api.md) · [All operations](https://skmtc.net/fanvue/apis/fanvue-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fanvue/fanvue-api/revisions/c5ddcd5c7e72/schema)
