Linknetik Developers Linknetik site

Network API

For Network and Admin users. Create a key at /my-profile/api-keys; it works at once and can do everything your role can, or less if you narrow its scopes.

Base URLhttps://YOUR-NETWORK-DOMAIN/api/v1

Use the domain of the network you work with. New here? Start with the quickstart.

All endpoints

Identity

Who the token belongs to and what it may do. Open to every key.

GET/meNo scope needed

The token owner, the account it acts for and what the token may do.

Call this first. token.scopes lists what this key can really do; affiliate_id / advertiser_id say which record it acts for (both null for Network keys).

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/me" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.

Reference

Small lookup lists (currencies, countries, payout types, statuses, categories, marketing channels, creative types). Open to every key.

GET/reference/currenciesNo scope needed

List currencies.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/currencies" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/reference/countriesNo scope needed

List countries.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/countries" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/reference/payout-typesNo scope needed

List active payout types (CPA / CPL / RevShare / …).

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/payout-types" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/reference/statusesNo scope needed

List the status catalog (shared across many tables).

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/statuses" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/reference/categoriesNo scope needed

List categories (IAB).

What offers and traffic sources are classified with.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/categories" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/reference/marketing-channelsNo scope needed

List marketing channels (email, social, search, …).

What a traffic source is, and what an offer accepts.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/marketing-channels" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/reference/creative-typesNo scope needed

List creative types (image banner, text link, HTML, …).

source says where the asset of that type is: a url or HTML code.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/creative-types" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.

Parties

Affiliates and advertisers, their users and traffic sources. Each role sees its own record in full and the other side without contact details.

GET/affiliatesScope read:parties

List affiliates.

search looks in the company name (and, for Network keys, the email).

Token scope: read:parties.

Parameters

NameInTypeNotes
searchquerystringText to look for.
status_idqueryintegerSee /reference/statuses.
country_idqueryintegerSee /reference/countries.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/affiliates" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/affiliates/{id}Scope read:parties

Fetch one affiliate.

Token scope: read:parties.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/affiliates/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/advertisersScope read:parties

List advertisers.

search looks in the company name (and, for Network keys, the email).

Token scope: read:parties.

Parameters

NameInTypeNotes
searchquerystringText to look for.
status_idqueryintegerSee /reference/statuses.
country_idqueryintegerSee /reference/countries.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/advertisers" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/advertisers/{id}Scope read:parties

Fetch one advertiser.

Token scope: read:parties.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/advertisers/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/usersScope read:parties

List the users of affiliates and advertisers.

The people who sign in for a company. Staff accounts of the Network are never returned, and neither is anything that authenticates a user.

Token scope: read:parties.

Parameters

NameInTypeNotes
affiliate_idqueryintegerUsers of one affiliate.
advertiser_idqueryintegerUsers of one advertiser.
rolequerystringOne of: affiliate, advertiser.
status_idqueryintegerSee /reference/statuses.
searchquerystringFirst name, last name or email contains.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/users" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/users/{id}Scope read:parties

Fetch one user of an affiliate or advertiser.

Token scope: read:parties.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/users/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/traffic-sourcesScope read:offers

List traffic sources.

Where an affiliate's traffic comes from (a site, a newsletter, a social account). country_ids and category_ids point at the Reference lists.

Every source; pass affiliate_id for one affiliate.

Token scope: read:offers.

Parameters

NameInTypeNotes
affiliate_idqueryinteger
marketing_channel_idqueryintegerSee /reference/marketing-channels.
status_idqueryintegerSee /reference/statuses.
searchquerystringName or URL contains.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/traffic-sources" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/traffic-sources/{id}Scope read:offers

Fetch one traffic source.

Token scope: read:offers.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/traffic-sources/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.

Offers

Offers, their landing pages, creatives and payouts, and tracking links.

GET/offersScope read:offers

List live offers.

Live offers by default; pass status_id for another status.

Token scope: read:offers.

Parameters

NameInTypeNotes
searchquerystringOffer name contains.
category_idqueryintegerSee /reference/categories.
marketing_channel_idqueryintegerSee /reference/marketing-channels.
country_idqueryintegerOffers a visitor from this country can be sent to.
advertiser_idqueryinteger
status_idqueryintegerInstead of live (2) only. One of: 1, 2, 3.
is_privatequeryintegerOne of: 0, 1.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
POST/offersScope write:offers

Create an offer.

Token scope: write:offers.

JSON body

FieldTypeNotes
advertiser_idrequiredinteger
namerequiredstring
descriptionstring
default_urlrequiredstring (uri)
preview_urlstring (uri)
is_privateboolean

Example request

curl -X POST "https://YOUR-NETWORK-DOMAIN/api/v1/offers" \
  -H "Authorization: Bearer $LINKNETIK_KEY" \
  -H "Content-Type: application/json" \
  -d '{"advertiser_id":1,"name":"Example offer","default_url":"https://example.com/landing"}'

Responses

StatusMeaning
201Created
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/offers/availableScope read:offers

List the offers an affiliate could ask for.

The marketplace: live offers the affiliate is not running yet, that accept at least one marketing channel it has a traffic source for. can_request is false for private offers, which need an invite; ask for the others with POST /offers/{id}/access-request.

Pass affiliate_id to choose the affiliate.

Token scope: read:offers.

Parameters

NameInTypeNotes
searchquerystringOffer name contains.
category_idqueryintegerSee /reference/categories.
marketing_channel_idqueryintegerSee /reference/marketing-channels.
country_idqueryintegerOffers a visitor from this country can be sent to.
affiliate_idqueryintegerRequired for Network keys.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/available" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/offers/{id}Scope read:offers

Fetch a single offer.

Any offer that is not deleted.

Token scope: read:offers.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
PATCH/offers/{id}Scope write:offers

Partially update an offer.

Token scope: write:offers.

Parameters

NameInTypeNotes
idrequiredpathinteger

JSON body

FieldTypeNotes
namestring
descriptionstring
default_urlstring (uri)
preview_urlstring (uri)
is_privateboolean
status_idinteger

Example request

curl -X PATCH "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Example offer"}'

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/offers/{id}/urlsScope read:offers

List the landing pages of an offer.

Token scope: read:offers.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/urls" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/offers/{id}/creativesScope read:offers

List the creatives of an offer.

url is where the file is (or, for a text link, where it leads). has_code says there is HTML to fetch with the next endpoint. Types are in /reference/creative-types.

Token scope: read:offers.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/creatives" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/offers/{id}/creatives/{creative_id}Scope read:offers

Fetch one creative, with its HTML.

Token scope: read:offers.

Parameters

NameInTypeNotes
idrequiredpathinteger
creative_idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/creatives/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/offers/{id}/payoutsScope read:offers

List what an offer pays.

One row per event of the offer (offer_event_id is null for an offer with a single event). Types are in /reference/payout-types.

Every active row: the default (affiliate_id null) and the ones set for one affiliate.

Token scope: read:offers.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/payouts" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/creativesScope read:offers

Find creatives across offers.

The same creatives the per-offer list returns, without having to know the offer. The HTML of one is on /offers/{id}/creatives/{creative_id}.

Token scope: read:offers.

Parameters

NameInTypeNotes
offer_idqueryinteger
type_idqueryintegerSee /reference/creative-types.
searchquerystringCreative name contains.
status_idqueryintegerOne of: 1, 2.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/creatives" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/offers/{id}/eventsScope read:offers

List the events of an offer.

What can be reported as a conversion on this offer (a lead, a sale, a deposit…). slug is what a postback sends as e=; id is the offer_event_id of payouts and conversions. Empty for an offer with a single kind of conversion.

Token scope: read:offers.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/events" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/tracking-domainsScope read:offers

List tracking domains.

The hostnames tracking links are served from. An offer points at one.

Token scope: read:offers.

Parameters

NameInTypeNotes
status_idqueryintegerSee /reference/statuses.
searchquerystringDomain contains.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/tracking-domains" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/tracking-domains/{id}Scope read:offers

Fetch one tracking domain.

Token scope: read:offers.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/tracking-domains/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.

Access

Which affiliate may run which offer.

POST/offers/{id}/access/{affiliate_id}/approveScope write:access

Approve an affiliate's access to an offer.

Token scope: write:access.

Parameters

NameInTypeNotes
idrequiredpathinteger
affiliate_idrequiredpathinteger

Example request

curl -X POST "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/access/123/approve" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
POST/offers/{id}/access/{affiliate_id}/rejectScope write:access

Reject or revoke an affiliate's access.

Token scope: write:access.

Parameters

NameInTypeNotes
idrequiredpathinteger
affiliate_idrequiredpathinteger

Example request

curl -X POST "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/access/123/reject" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.

Reporting

Aggregated stats and raw click / conversion lists.

GET/stats/generalScope read:stats

Rolled-up KPIs: clicks, conversions, money, CR, approval rate.

Flat totals by default. Pass group_by=offer to split by offer, offer_id to look at one offer.

Token scope: read:stats.

Parameters

NameInTypeNotes
date_fromquerystring (date)Default: 30 days ago.
date_toquerystring (date)Default: today.
offer_idqueryinteger
affiliate_idqueryinteger
advertiser_idqueryinteger
country_codequerystringTwo letters, as in /reference/countries.
device_typequerystring
sub1querystring
sub2querystring
sub3querystring
sub4querystring
sub5querystring
group_byquerystringOne of: offer.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/stats/general" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/stats/clicksScope read:stats

Click counts by day, offer, affiliate, country, device, creative or sub id.

Token scope: read:stats.

Parameters

NameInTypeNotes
date_fromquerystring (date)Default: 30 days ago.
date_toquerystring (date)Default: today.
offer_idqueryinteger
affiliate_idqueryinteger
advertiser_idqueryinteger
country_codequerystringTwo letters, as in /reference/countries.
device_typequerystring
sub1querystring
sub2querystring
sub3querystring
sub4querystring
sub5querystring
group_byquerystringadvertiser is for Network keys only. One of: day, offer, affiliate, advertiser, country, device, creative, sub1, sub2, sub3, sub4, sub5. Default day.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/stats/clicks" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/stats/conversionsScope read:stats

Conversion counts and money by day, offer, affiliate, country, device, creative or sub id.

Token scope: read:stats.

Parameters

NameInTypeNotes
date_fromquerystring (date)Default: 30 days ago.
date_toquerystring (date)Default: today.
offer_idqueryinteger
affiliate_idqueryinteger
advertiser_idqueryinteger
country_codequerystringTwo letters, as in /reference/countries.
device_typequerystring
sub1querystring
sub2querystring
sub3querystring
sub4querystring
sub5querystring
group_byquerystringadvertiser is for Network keys only. One of: day, offer, affiliate, advertiser, country, device, creative, sub1, sub2, sub3, sub4, sub5. Default day.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/stats/conversions" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/clicksScope read:stats

Paginated per-click list.

Default window is the last 24 h because click rows are high-volume. Pass explicit dates to widen. status_id=4 lists the clicks that were refused, each with its rejection_reason.

Each click carries fraud_score and fraud_rules_hit, and the exact rejection_reason (fraud_rate_limit, fraud_score_block).

Token scope: read:stats.

Parameters

NameInTypeNotes
date_fromquerystring (date)Default: 30 days ago.
date_toquerystring (date)Default: today.
offer_idqueryinteger
affiliate_idqueryinteger
status_idqueryinteger
advertiser_idqueryinteger
country_codequerystringTwo letters, as in /reference/countries.
device_typequerystring
sub1querystring
sub2querystring
sub3querystring
sub4querystring
sub5querystring
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/clicks" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/clicks/{click_id}Scope read:stats

Fetch one click.

click_id is the id handed to the advertiser on the redirect, the one a postback sends back.

With fraud_score, fraud_rules_hit and the exact rejection_reason.

Token scope: read:stats.

Parameters

NameInTypeNotes
click_idrequiredpathstring

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/clicks/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/conversionsScope read:stats

Paginated list of conversions.

Pass tx_id or click_id to find one conversion by the advertiser's transaction id or by the click it came from. status_id=1 lists the conversions still waiting for approval.

Token scope: read:stats.

Parameters

NameInTypeNotes
date_fromquerystring (date)Default: 30 days ago.
date_toquerystring (date)Default: today.
offer_idqueryinteger
affiliate_idqueryinteger
status_idqueryintegerOne of: 1, 2, 4.
tx_idquerystringThe advertiser's transaction id.
click_idquerystring
advertiser_idqueryinteger
country_codequerystringTwo letters, as in /reference/countries.
device_typequerystring
sub1querystring
sub2querystring
sub3querystring
sub4querystring
sub5querystring
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/conversions" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/conversions/{id}Scope read:stats

Fetch one conversion.

Token scope: read:stats.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/conversions/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.

Invoices

Invoices of affiliates and advertisers.

GET/invoicesScope read:invoices

List invoices.

An invoice is for an affiliate (what the Network pays it) or for an advertiser (what the Network charges it): type says which. status_id here is the invoice's own: 1 draft, 2 finalized, 3 cancelled.

Every invoice, drafts included.

Token scope: read:invoices.

Parameters

NameInTypeNotes
date_fromquerystring (date)Issue date from. No default range.
date_toquerystring (date)Issue date to.
typequerystringOne of: affiliate, advertiser.
affiliate_idqueryinteger
advertiser_idqueryinteger
status_idqueryintegerOne of: 1, 2, 3.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/invoices" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/invoices/summaryScope read:invoices

Totals of invoices.

One row per type, status and currency: how many invoices and the sums of subtotal, VAT and total. Takes the filters of the list. Amounts in different currencies are never added together.

Token scope: read:invoices.

Parameters

NameInTypeNotes
date_fromquerystring (date)Issue date from. No default range.
date_toquerystring (date)Issue date to.
typequerystringOne of: affiliate, advertiser.
affiliate_idqueryinteger
advertiser_idqueryinteger
status_idqueryintegerOne of: 1, 2, 3.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/invoices/summary" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/invoices/{id}Scope read:invoices

Fetch one invoice, with its lines.

Also returns the notes written on the invoice.

Token scope: read:invoices.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/invoices/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.

Conversions

Create conversions and change their status.

POST/conversionsScope write:conversions

Create a conversion (manual / S2S from a trusted partner).

Idempotent on (offer_id, tx_id). Fires the conversion.created webhook.

Token scope: write:conversions.

JSON body

FieldTypeNotes
offer_idrequiredinteger
affiliate_idrequiredinteger
advertiser_idinteger
click_idstring
tx_idstring
revenuenumber
payoutnumber
currency_idinteger
status_idintegerOne of: 1, 2, 4.

Example request

curl -X POST "https://YOUR-NETWORK-DOMAIN/api/v1/conversions" \
  -H "Authorization: Bearer $LINKNETIK_KEY" \
  -H "Content-Type: application/json" \
  -d '{"offer_id":1,"affiliate_id":1}'

Responses

StatusMeaning
201Created
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
PATCH/conversions/{id}/statusScope write:conversions

Approve or reject a conversion.

Fires the conversion.approved / conversion.rejected webhook.

Token scope: write:conversions.

Parameters

NameInTypeNotes
idrequiredpathinteger

JSON body

FieldTypeNotes
status_idrequiredinteger2=approved, 4=rejected One of: 2, 4.
notestring

Example request

curl -X PATCH "https://YOUR-NETWORK-DOMAIN/api/v1/conversions/123/status" \
  -H "Authorization: Bearer $LINKNETIK_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status_id":2}'

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.