POST
/
pixels
Create Pixel Profile
curl --request POST \
  --url https://connextify.com/api/v1/pixels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": "<string>",
  "pixel_id": "<string>",
  "access_token": "<string>",
  "api_secret": "<string>",
  "test_event_code": "<string>",
  "delivery_mode": "<string>"
}
'
{
  "success": true,
  "data": {}
}
Create a new reusable pixel profile for audience retargeting and analytics tracking. Once created, attach the pixel profile UUID to any short link via pixel_ids: ["YOUR_PIXEL_UUID"] or to any dynamic QR code.
Server-Side Conversions API (CAPI)
For Meta, TikTok, and Google Analytics, providing an access_token and api_secret enables server-to-server CAPI delivery. On Pro and Business accounts, server CAPI executes an instant HTTP 302 redirect with 0ms latency that bypasses browser ad blockers and Safari ITP cookie restrictions.

Body Parameters

Required Parameters

name
string
required
Descriptive name for the pixel profile (1-100 characters).Example: Holiday Meta Retargeting
type
string
required
Ad network platform:
  • facebook: Meta (Facebook & Instagram) Pixel
  • google: Google Analytics 4 (Measurement ID)
  • gtm: Google Tag Manager Container ID (GTM-XXXXXX)
  • tiktok: TikTok Pixel
  • linkedin: LinkedIn Insight Tag
  • twitter: Twitter/X Ads Pixel
  • pinterest: Pinterest Tag
  • microsoft: Microsoft Advertising (UET Tag)
  • snapchat: Snapchat Pixel
  • reddit: Reddit Pixel
  • clarity: Microsoft Clarity
  • quora: Quora Pixel
  • posthog: PostHog Analytics
  • plausible: Plausible Analytics
pixel_id
string
required
The external Pixel ID, Tag ID, or Measurement ID (1-2000 characters).Example: 123456789012345 or G-ABCDEF1234

Optional Parameters

access_token
string
Access token for Server-to-Server Conversions API (e.g. Meta Graph API system user token).
api_secret
string
API secret key for Conversions API (e.g. Google Analytics 4 Measurement Protocol API Secret).
test_event_code
string
Optional test code from Meta Events Manager (Test Events tab) or TikTok Events Manager to verify live delivery in the platform’s debugging console.
delivery_mode
string
default:"auto"
Pixel event dispatch mechanism:
  • auto: Automatically selects server CAPI if API credentials exist, otherwise falls back to browser interstitial.
  • server: Strictly enforces Server-Side Conversions API (0ms redirect delay).
  • client: Uses 250ms interstitial page to load client-side tags in the browser.
Pre-Save Credential Validation
When delivery_mode is server or credentials (access_token, api_secret) are supplied, Connextify performs a live test ping against the target ad network. If Meta, TikTok, or Google rejects the token, the request returns a 400 VALIDATION_ERROR with status rejected and the platform’s diagnostic message, ensuring broken credentials never enter production.

Response

success
boolean
Indicates if the pixel profile was created successfully.
data
object
The newly created pixel profile.

Request Examples

curl -X POST "https://connextify.com/api/v1/pixels" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Production Meta CAPI",
    "type": "facebook",
    "pixel_id": "849204918204918",
    "access_token": "EAAX...your_token",
    "delivery_mode": "server"
  }'

Response Example

{
  "success": true,
  "data": {
    "id": "7b3c29e1-4d82-4fa0-8f92-9118c7e91240",
    "name": "Production Meta CAPI",
    "type": "facebook",
    "pixel_id": "849204918204918",
    "delivery_mode": "server",
    "created_at": "2026-10-22T19:30:00.000Z"
  }
}