---
title: "Create Smart Link"
method: POST
path: "/api/smart-links"
tags: ["Smart Links"]
---

# Create Smart Link

`POST /api/smart-links`

Create a new Smart Link for the account. Smart Links are pooled Free Trial or Tracking links that rotate inventory automatically.

## Request body

- object
  - `account_id` string, required — The prefixed ID of the account to create the Smart Link for
  - `name` string, required — The name of the Smart Link
  - `link_type` 'free_trial' | 'tracking_link', required — The type of Smart Link to create
  - `free_trial_days` integer — The number of free trial days (required if `link_type` is `free_trial`). Must be between 1 and 360.

## Response `200`

Success

- object
  - `data` object
    - `id` string
    - `name` string
    - `link_type` string
    - `traffic_redirect_url` string
    - `free_trial_days` integer
    - `clicks_count` integer
    - `conversions_count` integer
    - `subscribers_count` integer
    - `revenue` string, nullable
    - `cost` object
      - `inputMode` string, nullable
      - `inputValue` string, nullable
      - `perSub` string, nullable
      - `perClick` string, nullable
      - `perPromo` string, nullable
      - `subscriberSourceCount` integer
      - `clickSourceCount` integer
    - `account` object
      - `id` string
      - `display_name` string
      - `username` string
    - `created_at` string
    - `updated_at` string
  - `_meta` object
    - `_credits` object
      - `used` integer
      - `balance` integer
      - `note` string
    - `_cache` object
      - `is_cached` boolean
      - `note` string
    - `_rate_limits` object
      - `limit_minute` integer
      - `limit_day` integer
      - `remaining_minute` integer
      - `remaining_day` integer

---

[API](https://skmtc.net/onlyfansapi/apis/onlyfans-api.md) · [All operations](https://skmtc.net/onlyfansapi/apis/onlyfans-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onlyfansapi/onlyfans-api/versions/4a99d36f28a3/schema)
