---
title: "Send Smart Link Pixel Test Event"
method: POST
path: "/api/smart-links/{smart_link_id}/pixels/{pixel_id}/test-event"
tags: ["Smart Links"]
---

# Send Smart Link Pixel Test Event

`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

Send a one-off test event using a connected pixel

## Request body

- object
  - `test_event_code` string, 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.

## Response `200`

Success

- object
  - `data` object
    - `accepted` boolean
    - `event_name` string
    - `status` integer
    - `body` object
      - `events_received` integer
  - `_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/:pixel_id/test-event/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)
