Skip to Content
TrackCrest Docs

Create tracking link

A tracking link for an affiliate and offer, with optional sub IDs.

POST
/api/v1/network/tracking-links

Requires scope offers:write.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key: pk_company_… (network), pk_aff_… (affiliate) or pk_adv_… (advertiser). X-Api-Key works too.

Request Body

application/json
  1. body
offerId?integer
Formatint32
affiliateId?integer
Formatint32
sub1?string|null
sub2?string|null
sub3?string|null
sub4?string|null
sub5?string|null

Response Body

Created

application/json
  1. response
data?
Example Request
curl -X POST 'https://trakcrt.com/api/v1/network/tracking-links' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "url": "string",    "code": "string",    "offer": {      "publicId": 0,      "name": "string"    },    "affiliate": {      "publicId": 0,      "name": "string"    },    "subIds": {      "sub1": "string",      "sub2": "string",      "sub3": "string",      "sub4": "string",      "sub5": "string"    },    "createdAt": "2019-08-24T14:15:22Z"  }}