> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onlyfansapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect CreatorTraffic to OnlyFans API Smart Links (/introduction/guides/creatortraffic-smart-links)

import { Step, Steps } from "fumadocs-ui/components/steps";

## What the CreatorTraffic integration does

CreatorTraffic is a traffic source for OnlyFans media buyers. This integration connects your CreatorTraffic ad account to OnlyFans API **Smart Links** so that every new subscriber you generate is reported straight back to CreatorTraffic for attribution.

**Why connect it?** Once connected, OnlyFans API postbacks each subscriber conversion to CreatorTraffic **server-side**, matched to the click that drove it. You get a clear view of which CreatorTraffic campaigns actually generate subscribers, instead of optimizing blind on clicks. No JavaScript, nothing to install on OnlyFans, and only a single API token to set up.

## Watch the walkthrough

<iframe className="aspect-video w-full" src="https://www.youtube.com/embed/oXSuGMDDwzM" title="CreatorTraffic × OnlyFans API Smart Links integration walkthrough" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerPolicy="strict-origin-when-cross-origin" allowFullScreen />

## Step-by-step setup

<Steps>
  <Step>
    ### Open your CreatorTraffic settings

    Go to [ads.creatortraffic.com/settings](https://ads.creatortraffic.com/settings) and choose **Settings** from the sidebar.

        <img alt="CreatorTraffic settings menu" src={__img0} placeholder="blur" />
  </Step>

  <Step>
    ### Generate and copy your API token

    In **API Access**, click **Generate API Token**, then copy the token.

        <img alt="CreatorTraffic API token field" src={__img1} placeholder="blur" />

    <Callout type="warn">
      If the **Generate API Token** button is unavailable, ask your CreatorTraffic account manager to enable API access on your account.
    </Callout>
  </Step>

  <Step>
    ### Connect it in OnlyFans API

    Log into your [OnlyFans API Dashboard](https://app.onlyfansapi.com), open **Smart Links → Manage Ad Platforms**, and select **CreatorTraffic**. Paste the token into the **API Token** field and **Save** the connection.

    <div className="mx-auto max-w-md">
            <img alt="OnlyFans API dashboard: CreatorTraffic API Token field" src={__img2} placeholder="blur" />
    </div>
  </Step>

  <Step>
    ### Add the click ID to your Smart Link URL

    Copy your Smart Link and append CreatorTraffic's click-ID parameters to the ad's destination URL so each conversion can be matched back to the click that drove it:

    ```text
    https://trk.of-traffic.com/go/YOUR_SMART_LINK_ID?ecid={clickid}&utm_source=creatortraffic
    ```

    Replace `YOUR_SMART_LINK_ID` with the ID from your Smart Links dashboard. CreatorTraffic replaces `{clickid}` with the click's ID at click time, and Smart Links reads it from the `ecid` parameter and sends it back to CreatorTraffic with every conversion. Keep both `?ecid={clickid}` and `&utm_source=creatortraffic` on the URL.

        <img alt="CreatorTraffic ad destination URL with click ID parameters" src={__img3} placeholder="blur" />
  </Step>

  <Step>
    ### You're done

    New subscribers attributed to that Smart Link are now postbacked to CreatorTraffic using the click ID. They'll show up against the matching campaign in your CreatorTraffic reports.
  </Step>
</Steps>