NewFans API, previously OnlyFans API · A new name. A broader platform.
Fans API
OnlyFansSmart Links

Connect Smart Link Pixel

Connect an existing Team pixel to a Smart Link without creating a new pixel. Connecting a pixel that is already connected changes nothing.

POST
/api/smart-links/{smart_link_id}/pixels/{pixel_id}/connect
AuthorizationBearer <token>

Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys

In: header

Path Parameters

smart_link_id*string

The Smart Link ULID

pixel_id*integer

Our ID of the Team pixel: the id field returned by Create Smart Link Pixel or List Smart Link Pixels, not the platform's pixel_id

Response Body

application/json

curl -X POST "https://app.fansapi.com/api/smart-links/01JTESTLINK000000000000001/pixels/123/connect"
{
  "data": {
    "id": 123,
    "platform": "meta",
    "platform_label": "Meta Ads",
    "label": "Main Meta Pixel",
    "pixel_id": "1234567890",
    "event_source_url": "https://example.com/prelander",
    "event_click": "ViewContent",
    "event_new_subscriber": "Subscribe",
    "event_first_transaction": "Purchase",
    "event_new_transaction": "Purchase",
    "event_message_received_from_fan": null,
    "event_fan_sent_1_message": "Contact",
    "event_fan_sent_3_messages": "Lead",
    "event_page_view": "PageView",
    "status": "healthy",
    "traffic_source_ids": [],
    "traffic_sources": [],
    "created_at": "2026-07-24T08:00:00+00:00",
    "updated_at": "2026-07-24T08:00:00+00:00"
  },
  "_meta": {
    "_credits": {
      "used": 0,
      "balance": 999999,
      "note": "Free endpoint"
    },
    "_cache": {
      "is_cached": false,
      "note": "Cache disabled for this endpoint"
    }
  }
}