Skip to Content
TrackCrest Docs

Build tracking link

Build a link for an offer you're approved for, with sub1–sub5 and an optional deep link. Nothing is stored: the values ride on the URL.

POST
/api/v1/affiliate/tracking-links

Requires scope offers:read.

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
sub1?string|null
sub2?string|null
sub3?string|null
sub4?string|null
sub5?string|null
deepLink?string|null

Response Body

OK

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