---
title: "Create Smart Link Pixel"
method: POST
path: "/api/smart-links/{smart_link_id}/pixels"
tags: ["Smart Links"]
---

# Create Smart Link Pixel

`POST /api/smart-links/{smart_link_id}/pixels`

## Request

- Base URL: `https://app.onlyfansapi.com`
- URL: `https://app.onlyfansapi.com/api/smart-links/{smart_link_id}/pixels`
- Auth: HTTP bearer

Create a Team pixel and connect it to a Smart Link

## Request body

- object
  - `platform` 'meta' | 'snapchat' | 'tiktok' | 'creatortraffic', required: Ad platform.
  - `label` string, nullable: Display label. A platform label is generated when omitted. Must not be greater than 100 characters.
  - `pixel_id` string, required: Platform pixel ID. Not used by CreatorTraffic.
  - `pixel_access_token` string, required: Platform access token. This value is write-only.
  - `event_source_url` string, nullable: Event source URL. Not used by CreatorTraffic. Must be a valid URL. Must not be greater than 2048 characters.
  - `event_click` string, nullable: Platform event name. Must not be greater than 100 characters.
  - `event_new_subscriber` string, nullable: Platform event name. Must not be greater than 100 characters.
  - `event_first_transaction` string, nullable: Platform event name. Must not be greater than 100 characters.
  - `event_new_transaction` string, nullable: Platform event name. Must not be greater than 100 characters.
  - `event_message_received_from_fan` string, nullable: Platform event name. Must not be greater than 100 characters.
  - `event_fan_sent_1_message` string, nullable: Platform event name. Must not be greater than 100 characters.
  - `event_fan_sent_3_messages` string, nullable: Platform event name. Must not be greater than 100 characters.
  - `event_page_view` string, nullable: Platform event name. Must not be greater than 100 characters.
  - `event_new_follower` string, nullable: Platform event name. Must not be greater than 100 characters.
  - `supercharged_events` string[]: Must not be greater than 100 characters.

## Response `200`

Success

- object
  - `data` object
    - `id` integer
    - `platform` string
    - `platform_label` string
    - `label` string
    - `pixel_id` string
    - `event_source_url` string
    - `event_click` string
    - `event_new_subscriber` string
    - `event_first_transaction` string
    - `event_new_transaction` string
    - `event_message_received_from_fan` string, nullable
    - `event_fan_sent_1_message` string
    - `event_fan_sent_3_messages` string
    - `event_page_view` string
    - `status` string
    - `traffic_source_ids` unknown[]
      - unknown
    - `traffic_sources` unknown[]
      - unknown
    - `created_at` string
    - `updated_at` string
  - `_meta` object
    - `_credits` object
      - `used` integer
      - `balance` integer
      - `note` string
    - `_cache` object
      - `is_cached` boolean
      - `note` string

## Changes

- **2026-10-17** `b3968f1bc1f0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/onlyfansapi/apis/onlyfans-api/changes/api/smart-links/:smart_link_id/pixels/post.md)

---

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