Smart Links

Send Smart Link Pixel Test Event

Changed on

Send a one-off test event using a connected pixel

post/api/smart-links/{smart_link_id}/pixels/{pixel_id}/test-event

Request

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

Request body

test_event_codestring nullable

One-off Meta or TikTok test event code. Snapchat does not use this value. Must not be greater than 100 characters.

event_type'event_click' | 'event_new_subscriber_free' | 'event_new_subscriber_paid' | 'event_first_transaction' | 'event_new_transaction' | 'event_message_received_from_fan' | 'event_fan_sent_1_message' | 'event_fan_sent_3_messages' | 'event_page_view' required

Smart Link event to simulate. CreatorTraffic does not support test events.

Example request

{
  "test_event_code": "TEST12345",
  "event_type": "event_click"
}

Response

Success

Example response

{
  "data": {
    "accepted": true,
    "event_name": "Subscribe",
    "status": 200,
    "body": {
      "events_received": 1
    }
  },
  "_meta": {
    "_credits": {
      "used": 0,
      "balance": 999999,
      "note": "Free endpoint"
    },
    "_cache": {
      "is_cached": false,
      "note": "Cache disabled for this endpoint"
    }
  }
}

Changes