Skip to main content
POST
Create click

Authorizations

X-API-Key
string
header
required

Preferred authentication method. Pass the API key in the X-API-Key HTTP request header. The user account must have api_status enabled.

Body

application/json
affiliate_id
integer
required

Affiliate ID.

offer_id
integer
required

Offer ID.

ip
string

Visitor IP address. Both IPv4 and IPv6 are accepted, e.g. 203.0.113.77 or 2001:db8:85a3::8a2e:370:7334. The value is normalised rather than kept verbatim: an ::ffff: prefix is stripped on input, IPv4 is held in IPv6-mapped form, and IPv6 is stored in ClickHouse binary IPv6, so an uppercase or fully expanded address comes back canonical and lowercase. An unparseable value is silently stored as :: with a 200. A truncated copy such as 203.0.xxx.xxx is stored alongside regardless of settings, and while the platform GDPR hide-IP setting is on the full address is replaced with :: and the reporting endpoints return that truncated mask instead. Used for geo-attribution.

advertiser_id
integer

Ignored on input - resolved from the offer.

goal_id
integer

Ignored on input - the CPC goal is resolved from the offer.

Landing page (offer URL) id. When omitted and creative_id is set, the landing page of that creative is used; otherwise the offer default applies.

source_id
integer

Affiliate traffic source id; validated against the affiliate's own sources.

creative_id
integer

Creative id; validated against the offer's creatives.

user_agent
string

Client user agent; parsed for device, OS and browser detection.

click_referer
string

HTTP referrer URL.

country_id
integer

Not stored on the click - the click country always comes from the ip lookup. A supplied value is only used for the CPC commission lookup, so sending one can price the click for a country the click itself does not carry.

redirect_url
string

Ignored on input - not listed in the model rules, so it is dropped before the click is built.

sub_id1
string

Affiliate sub id 1, stored on the click and available in reports.

sub_id2
string

Affiliate sub id 2, stored on the click and available in reports.

sub_id3
string

Affiliate sub id 3, stored on the click and available in reports.

sub_id4
string

Affiliate sub id 4, stored on the click and available in reports.

sub_id5
string

Affiliate sub id 5, stored on the click and available in reports.

aff_param1
string

Affiliate custom parameter 1, stored on the click.

aff_param2
string

Affiliate custom parameter 2, stored on the click.

aff_param3
string

Affiliate custom parameter 3, stored on the click.

aff_param4
string

Affiliate custom parameter 4, stored on the click.

aff_param5
string

Affiliate custom parameter 5, stored on the click.

aff_click_id
string

Affiliate's own click identifier.

Deep link value stored on the click.

idfa
string

iOS device identifier.

gaid
string

Android device identifier.

click_date
string<date-time>

Click timestamp (defaults to now).

hash
string

MD5 click hash for uniqueness validation (32 hex chars).

custom1
string

Custom tracking value 1, stored on the click.

custom2
string

Custom tracking value 2, stored on the click.

custom3
string

Custom tracking value 3, stored on the click.

custom4
string

Custom tracking value 4, stored on the click.

custom5
string

Custom tracking value 5, stored on the click.

custom6
string

Custom tracking value 6, stored on the click.

custom7
string

Custom tracking value 7, stored on the click.

custom8
string

Custom tracking value 8, stored on the click.

custom9
string

Custom tracking value 9, stored on the click.

custom10
string

Custom tracking value 10, stored on the click.

Response

Click created.

status
string
Example:

"success"

code
integer
Example:

200

name
string
Example:

"OK"

message
string
Example:

"Click transaction has been added successfully!"

info
object