Smart Links

Update Smart Link Pixel

Changed on

Update a connected Team pixel. Changes apply to every Smart Link using the pixel.

patch/api/smart-links/{smart_link_id}/pixels/{pixel_id}

Request

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

Request body

labelstring nullable

Display label. Omit or send an empty value to keep the current label. Must not be greater than 100 characters.

pixel_idstring nullable

Replacement platform pixel ID. Omit or send an empty value to keep the current ID.

pixel_access_tokenstring nullable

Replacement platform access token. Omit or send an empty value to keep the current token.

event_source_urlstring nullable

Replacement event source URL. Send null to clear it. Must be a valid URL. Must not be greater than 2048 characters.

event_clickstring nullable

Replacement platform event name. Send null to clear it. Must not be greater than 100 characters.

event_new_subscriberstring nullable

Replacement platform event name. Send null to clear it. Must not be greater than 100 characters.

event_first_transactionstring nullable

Replacement platform event name. Send null to clear it. Must not be greater than 100 characters.

event_new_transactionstring nullable

Replacement platform event name. Send null to clear it. Must not be greater than 100 characters.

event_message_received_from_fanstring nullable

Replacement platform event name. Send null to clear it. Must not be greater than 100 characters.

event_fan_sent_1_messagestring nullable

Replacement platform event name. Send null to clear it. Must not be greater than 100 characters.

event_fan_sent_3_messagesstring nullable

Replacement platform event name. Send null to clear it. Must not be greater than 100 characters.

event_page_viewstring nullable

Replacement platform event name. Send null to clear it. Must not be greater than 100 characters.

event_new_followerstring nullable

Replacement platform event name. Send null to clear it. Must not be greater than 100 characters.

supercharged_eventsstring[]

Must not be greater than 100 characters.

Example request

{
  "label": "Updated Meta Pixel",
  "pixel_id": "1234567890",
  "pixel_access_token": "replacement-access-token",
  "event_source_url": "https://example.com/prelander",
  "supercharged_events": [
    "cclgllwy"
  ]
}

Response

Success

Example response

{
  "data": {
    "id": 123,
    "platform": "meta",
    "platform_label": "Meta Ads",
    "label": "Updated Meta Pixel",
    "pixel_id": "1234567890",
    "event_source_url": null,
    "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:15:00+00:00"
  },
  "_meta": {
    "_credits": {
      "used": 0,
      "balance": 999999,
      "note": "Free endpoint"
    },
    "_cache": {
      "is_cached": false,
      "note": "Cache disabled for this endpoint"
    }
  }
}

Changes