Skip to main content

LeadAttributionDTO

A single channel / UTM attribution attached to a lead.

idint64

Attribution ID

Example: 5001
channel object

Channel a lead originated from.

idint64

Channel ID

Example: 12
sourceLeadChannelSource

Channel a lead originated from. Serialized by name.

Possible values: [INSTAGRAM, FACEBOOK, FACEBOOK_FORM, TELEGRAM, TELEGRAM_BUSINESS, TELEGRAM_BOT, WHATSAPP, WABA, VK, VIBER, AVITO, WEBSITE, AMO_CRM, ONLINE_PBX, UTEL, SIPUNI, ASTERISK, MOI_ZVONKI, WEB_FORM, EMPLOYEE, UNKNOWN]

Example: INSTAGRAM
channelValuestring

Free-text channel identifier

Example: ig-promo-2026
utmData object

UTM / tracking attribution data attached to a lead.

utmSourcestring

UTM source

Example: instagram
utmMediumstring

UTM medium

Example: cpc
utmCampaignstring

UTM campaign

Example: spring_sale
utmTermstring

UTM term

Example: apartment
utmContentstring

UTM content

Example: banner_a
fbcLidstring

Facebook click ID (fbclid)

Example: IwAR0...
fbClientIpAddressstring

Client IP address (Facebook CAPI)

Example: 203.0.113.5
fbClientUserAgentstring

Client user agent (Facebook CAPI)

Example: Mozilla/5.0 ...
fbpstring

Facebook browser ID (_fbp cookie)

Example: fb.1.1672531200.1234567890
attachedTimestampint64

Time the attribution was attached (epoch seconds)

Example: 1672531200
LeadAttributionDTO
{
"id": 5001,
"channel": {
"id": 12,
"source": "INSTAGRAM",
"channelValue": "ig-promo-2026"
},
"utmData": {
"utmSource": "instagram",
"utmMedium": "cpc",
"utmCampaign": "spring_sale",
"utmTerm": "apartment",
"utmContent": "banner_a",
"fbcLid": "IwAR0...",
"fbClientIpAddress": "203.0.113.5",
"fbClientUserAgent": "Mozilla/5.0 ...",
"fbp": "fb.1.1672531200.1234567890"
},
"attachedTimestamp": 1672531200
}