Skip to content

Format of the data sent ​

Reference for whoever is going to receive the postbacks in your system (CRM, n8n, Make, your own API). If you're not on the technical side, send this article to your developer.

How the request arrives ​

ItemValue
MethodPOST
Body formatJSON (Content-Type: application/json)
DestinationThe URL added to the postback, exactly as it was saved (always with https://)
WhenOn each event of the type chosen in the postback. If you have two postbacks for the same event, each URL gets its own send
Expected responseAny 2xx status, as fast as possible

Best practices for your endpoint

  • Respond fast with 200 and process the data later, in the background.
  • Keep the endpoint live. Each event is sent only once to each postback.
  • Protect the URL. The request carries no authentication header. Use an address that's hard to guess, e.g. with a secret code in the path (https://webhook.demoagency.com/track4you/a8f3k2).
  • Use the body's type to know which event arrived, especially if the same URL receives more than one event.

General structure ​

Every send has the same blocks. Channel join and leave also bring the telegram block and the dates.

BlockWhat it brings
typeThe event: pageview, button_click, enter_channel or left_channel
originThe page the lead came from and the campaign parameters
userVisitor data: IP, browser, location and, on join and leave, the Telegram ID and the dates
trackingMeta identifiers linked to the visitor, when available
track4youIdentification of the event and the funnel in Track4you
telegramThe channel the lead joined or left (only on enter_channel and left_channel)

type values ​

Event on screentype
"Page View"pageview
"Button Click"button_click
"Channel Join"enter_channel
"Channel Leave"left_channel

Example: Page View ​

The same format applies to button_click.

json
{
  "type": "pageview",
  "origin": {
    "url": "https://blacklaunch.com/vip?utm_source=facebook&utm_medium=cpc&utm_campaign=black-launch",
    "utms": "utm_source=facebook&utm_medium=cpc&utm_campaign=black-launch",
    "domain": "blacklaunch.com"
  },
  "user": {
    "ip": "203.0.113.10",
    "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",
    "country": "US",
    "state": "FL",
    "city": "Miami",
    "zip": "33101"
  },
  "tracking": {
    "fbp": "fb.1.1792602012000.1234567890",
    "fbc": "fb.1.1792602012000.IwAR0demoClick"
  },
  "track4you": {
    "event_id": "5f2c1a9e-7b3d-4e8a-9c6f-2d1e0b9a8c7d",
    "funnel_id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
    "funnel_name": "Black Launch",
    "link": "https://t.me/+DemoInviteAbc123"
  }
}

Example: Channel Join ​

json
{
  "type": "enter_channel",
  "origin": {
    "url": "https://blacklaunch.com/vip?utm_source=facebook&utm_medium=cpc&utm_campaign=black-launch",
    "utms": "utm_source=facebook&utm_medium=cpc&utm_campaign=black-launch",
    "domain": "blacklaunch.com"
  },
  "user": {
    "ip": "203.0.113.10",
    "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",
    "country": "US",
    "state": "FL",
    "city": "Miami",
    "zip": "33101",
    "telegram_id": "5512345678",
    "enter_channel_date": "2026-10-21T22:40:12.000000Z"
  },
  "tracking": {
    "fbp": "fb.1.1792602012000.1234567890",
    "fbc": "fb.1.1792602012000.IwAR0demoClick"
  },
  "track4you": {
    "event_id": "5f2c1a9e-7b3d-4e8a-9c6f-2d1e0b9a8c7d",
    "funnel_id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
    "funnel_name": "Black Launch",
    "link": "https://t.me/+DemoInviteAbc123"
  },
  "telegram": {
    "channel_id": "-1001234567890",
    "channel_name": null
  }
}

Example: Channel Leave ​

Same as the join, with "type": "left_channel" and the left_channel_date field inside user:

json
{
  "type": "left_channel",
  "user": {
    "telegram_id": "5512345678",
    "enter_channel_date": "2026-10-21T22:40:12.000000Z",
    "left_channel_date": "2026-10-28T09:15:47.000000Z"
  }
}

The snippet above only shows what changes. The origin, tracking, track4you and telegram blocks and the other user fields arrive in full, as in the join example.

Field reference ​

FieldTypeWhat it is
typestringThe event that generated the send (table above)
origin.urlstringFull address of the source page, with the campaign parameters
origin.utmsstringOnly the URL's campaign parameters (UTMs), in the key=value&key=value format. It's a string, not an object: split it on & if you need each UTM
origin.domainstringDomain of the source page
user.ipstringVisitor's IP
user.user_agentstringVisitor's browser and device
user.countrystringCountry
user.statestringState
user.citystringCity
user.zipstringZIP/postal code (may be partial)
user.telegram_idstringThe lead's Telegram ID. Only on enter_channel and left_channel
user.enter_channel_datedateDate and time of the channel join, in ISO 8601 (UTC). Only on enter_channel and left_channel
user.left_channel_datedateDate and time of the leave, in ISO 8601 (UTC). Only on left_channel
tracking.fbpstringMeta browser identifier, when available. Useful if your system also sends events to Meta
tracking.fbcstringMeta click identifier, when the lead came from an ad
track4you.event_idstring (UUID)Identifier of the visit in Track4you. The page view, the click and the join from the same visit can carry the same value: to avoid duplicates in your system, combine event_id with type
track4you.funnel_idstring (UUID)Funnel ID (the same as in the join link https://t4y.io/v2/...)
track4you.funnel_namestringFunnel name, as it was added
track4you.linkstringChannel invite link used by this funnel
telegram.channel_idstringTelegram channel ID. Only on enter_channel and left_channel
telegram.channel_namestringChannel name. It may come as null: to identify the channel, use channel_id

Fields may come empty

Fields in origin, user and tracking may arrive as null when the information isn't available (e.g. fbc for someone who didn't come from an ad, or origin.utms for someone who arrived without campaign parameters). Handle these cases in your system.

Test the receiving end ​

The "Test Postback" button sends sample data to your URL and shows "Postback sent successfully!" when it responds with 2xx. It's there to confirm the endpoint is live. To validate the full format, generate a real event in the funnel (open the page, click the button or join the channel) and check what arrived. See Add and test a postback.