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
- GET/meThe token owner, the account it acts for and what the token may do.
- GET/reference/currenciesList currencies.
- GET/reference/countriesList countries.
- GET/reference/payout-typesList active payout types (CPA / CPL / RevShare / …).
- GET/reference/statusesList the status catalog (shared across many tables).
- GET/reference/categoriesList categories (IAB).
- GET/reference/marketing-channelsList marketing channels (email, social, search, …).
- GET/reference/creative-typesList creative types (image banner, text link, HTML, …).
- GET/affiliatesList affiliates.
- GET/affiliates/{id}Fetch one affiliate.
- GET/advertisersList advertisers.
- GET/advertisers/{id}Fetch one advertiser.
- GET/usersList the users of affiliates and advertisers.
- GET/users/{id}Fetch one user of an affiliate or advertiser.
- GET/traffic-sourcesList traffic sources.
- GET/traffic-sources/{id}Fetch one traffic source.
- GET/offersList live offers.
- POST/offersCreate an offer.
- GET/offers/availableList the offers an affiliate could ask for.
- GET/offers/{id}Fetch a single offer.
- PATCH/offers/{id}Partially update an offer.
- GET/offers/{id}/urlsList the landing pages of an offer.
- GET/offers/{id}/creativesList the creatives of an offer.
- GET/offers/{id}/creatives/{creative_id}Fetch one creative, with its HTML.
- GET/offers/{id}/payoutsList what an offer pays.
- GET/creativesFind creatives across offers.
- GET/offers/{id}/eventsList the events of an offer.
- GET/tracking-domainsList tracking domains.
- GET/tracking-domains/{id}Fetch one tracking domain.
- GET/tracking-linksBuild tracking links (click and impression) for an affiliate.
- POST/offers/{id}/access/{affiliate_id}/approveApprove an affiliate's access to an offer.
- POST/offers/{id}/access/{affiliate_id}/rejectReject or revoke an affiliate's access.
- GET/stats/generalRolled-up KPIs: clicks, conversions, money, CR, approval rate.
- GET/stats/clicksClick counts by day, offer, affiliate, country, device, creative or sub id.
- GET/stats/conversionsConversion counts and money by day, offer, affiliate, country, device, creative or sub id.
- GET/clicksPaginated per-click list.
- GET/clicks/{click_id}Fetch one click.
- GET/conversionsPaginated list of conversions.
- POST/conversionsCreate a conversion (manual / S2S from a trusted partner).
- GET/conversions/{id}Fetch one conversion.
- GET/invoicesList invoices.
- GET/invoices/summaryTotals of invoices.
- GET/invoices/{id}Fetch one invoice, with its lines.
- PATCH/conversions/{id}/statusApprove or reject a conversion.
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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
search | query | string | Text to look for. |
status_id | query | integer | See /reference/statuses. |
country_id | query | integer | See /reference/countries. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
GET/affiliates/{id}Scope read:parties
Fetch one affiliate.
Token scope: read:parties.
Parameters
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/affiliates/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
search | query | string | Text to look for. |
status_id | query | integer | See /reference/statuses. |
country_id | query | integer | See /reference/countries. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
GET/advertisers/{id}Scope read:parties
Fetch one advertiser.
Token scope: read:parties.
Parameters
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/advertisers/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
affiliate_id | query | integer | Users of one affiliate. |
advertiser_id | query | integer | Users of one advertiser. |
role | query | string | One of: affiliate, advertiser. |
status_id | query | integer | See /reference/statuses. |
search | query | string | First name, last name or email contains. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/users/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
affiliate_id | query | integer | |
marketing_channel_id | query | integer | See /reference/marketing-channels. |
status_id | query | integer | See /reference/statuses. |
search | query | string | Name or URL contains. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
GET/traffic-sources/{id}Scope read:offers
Fetch one traffic source.
Token scope: read:offers.
Parameters
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/traffic-sources/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
search | query | string | Offer name contains. |
category_id | query | integer | See /reference/categories. |
marketing_channel_id | query | integer | See /reference/marketing-channels. |
country_id | query | integer | Offers a visitor from this country can be sent to. |
advertiser_id | query | integer | |
status_id | query | integer | Instead of live (2) only. One of: 1, 2, 3. |
is_private | query | integer | One of: 0, 1. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
POST/offersScope write:offers
Create an offer.
Token scope: write:offers.
JSON body
| Field | Type | Notes |
|---|
advertiser_idrequired | integer | |
namerequired | string | |
description | string | |
default_urlrequired | string (uri) | |
preview_url | string (uri) | |
is_private | boolean | |
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
| Status | Meaning |
|---|
201 | Created |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
search | query | string | Offer name contains. |
category_id | query | integer | See /reference/categories. |
marketing_channel_id | query | integer | See /reference/marketing-channels. |
country_id | query | integer | Offers a visitor from this country can be sent to. |
affiliate_id | query | integer | Required for Network keys. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
PATCH/offers/{id}Scope write:offers
Partially update an offer.
Token scope: write:offers.
Parameters
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
JSON body
| Field | Type | Notes |
|---|
name | string | |
description | string | |
default_url | string (uri) | |
preview_url | string (uri) | |
is_private | boolean | |
status_id | integer | |
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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
GET/offers/{id}/urlsScope read:offers
List the landing pages of an offer.
Token scope: read:offers.
Parameters
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/urls" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/creatives" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
creative_idrequired | path | integer | |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/creatives/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/payouts" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
offer_id | query | integer | |
type_id | query | integer | See /reference/creative-types. |
search | query | string | Creative name contains. |
status_id | query | integer | One of: 1, 2. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/events" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
status_id | query | integer | See /reference/statuses. |
search | query | string | Domain contains. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
GET/tracking-domains/{id}Scope read:offers
Fetch one tracking domain.
Token scope: read:offers.
Parameters
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/tracking-domains/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
GET/tracking-linksScope read:offers
Build tracking links (click and impression) for an affiliate.
Uses the offer's custom tracking hostname when configured. Pass offer_id or offer_ids=1,2,3. subs 1-5 pass through.
A link has two shapes: full (/c?o=..&a=..) and short (/c/<code>). The impression pixel has the same two (/i?o=..&a=.. and /i/<code>). The Network chooses which ones are handed out, for clicks and impressions together: meta.link_format is short, full or both.
Per offer, url and impression_url are the links to use (the short ones whenever short links are handed out). short_url, full_url, impression_short_url and impression_full_url hold each shape and are null for a shape that is not handed out. A link keeps working once issued, in either shape, whatever is chosen later.
Pass affiliate_id to choose the affiliate.
Token scope: read:offers.
Parameters
| Name | In | Type | Notes |
|---|
offer_id | query | integer | |
offer_ids | query | string | Comma-separated ids. |
s1 | query | string | |
s2 | query | string | |
s3 | query | string | |
s4 | query | string | |
s5 | query | string | |
affiliate_id | query | integer | Required for Network keys. |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/tracking-links" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
affiliate_idrequired | path | integer | |
Example request
curl -X POST "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/access/123/approve" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
affiliate_idrequired | path | integer | |
Example request
curl -X POST "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/access/123/reject" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
affiliate_id | query | integer | |
advertiser_id | query | integer | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
group_by | query | string | One of: offer. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
affiliate_id | query | integer | |
advertiser_id | query | integer | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
group_by | query | string | advertiser is for Network keys only. One of: day, offer, affiliate, advertiser, country, device, creative, sub1, sub2, sub3, sub4, sub5. Default day. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
affiliate_id | query | integer | |
advertiser_id | query | integer | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
group_by | query | string | advertiser is for Network keys only. One of: day, offer, affiliate, advertiser, country, device, creative, sub1, sub2, sub3, sub4, sub5. Default day. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
affiliate_id | query | integer | |
status_id | query | integer | |
advertiser_id | query | integer | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
click_idrequired | path | string | |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/clicks/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
affiliate_id | query | integer | |
status_id | query | integer | One of: 1, 2, 4. |
tx_id | query | string | The advertiser's transaction id. |
click_id | query | string | |
advertiser_id | query | integer | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
GET/conversions/{id}Scope read:stats
Fetch one conversion.
Token scope: read:stats.
Parameters
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/conversions/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
date_from | query | string (date) | Issue date from. No default range. |
date_to | query | string (date) | Issue date to. |
type | query | string | One of: affiliate, advertiser. |
affiliate_id | query | integer | |
advertiser_id | query | integer | |
status_id | query | integer | One of: 1, 2, 3. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
date_from | query | string (date) | Issue date from. No default range. |
date_to | query | string (date) | Issue date to. |
type | query | string | One of: affiliate, advertiser. |
affiliate_id | query | integer | |
advertiser_id | query | integer | |
status_id | query | integer | One of: 1, 2, 3. |
format | query | string | csv 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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/invoices/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"
Responses
| Status | Meaning |
|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Field | Type | Notes |
|---|
offer_idrequired | integer | |
affiliate_idrequired | integer | |
advertiser_id | integer | |
click_id | string | |
tx_id | string | |
revenue | number | |
payout | number | |
currency_id | integer | |
status_id | integer | One 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
| Status | Meaning |
|---|
201 | Created |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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
| Name | In | Type | Notes |
|---|
idrequired | path | integer | |
JSON body
| Field | Type | Notes |
|---|
status_idrequired | integer | 2=approved, 4=rejected One of: 2, 4. |
note | string | |
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
| Status | Meaning |
|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |