List Tracking Link
HTTP method
End Point
Description
GET
/network/link/{affiliate_id}/{campaign_id}
Get the Tracking link for a campaign
POST
/network/link/{affiliate_id}/{campaign_id}
Create a Tracking link for a campaign

Get the Tracking Link

Sending a request to this endpoint will display the tracking link if exists

Response body parameters

1
curl -X GET -H "X-Api-Key: {key}" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 495264a7-dcbd-34b5-5e00-cf0a6b9d4884" "https://api.trackier.com/network/link/{affiliate_id}/{campaign_id}"
Copied!
1
{
2
"success": true,
3
"data": {
4
"tracking_link": "http://dobolly.com/587dbed6b6920d496f7b5f2f",
5
"link": {
6
"user_id": "580a45201d41c82966347b8b",
7
"ad_id": "587d16efb6920d7107695620",
8
"domain": "dobolly.com",
9
"_id": "587dbed6b6920d496f7b5f2f",
10
"live": false,
11
"created": "2017-01-17",
12
"modified": null,
13
"meta": []
14
}
15
}
16
}
Copied!

Create a New Tracking Link

Sending a request to this endpoint will create a tracking link if it does not exists else will return the tracking link previously created

Request body parameters

1
curl -X POST -H "X-Api-Key: {key}" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 37bc9799-7a19-bcd6-6746-2e9552e02dfb" -d '{"domain": "viralarticlez.com"}' "https://api.trackier.com/network/link/{affiliate_id}/{campaign_id}"
Copied!

POST Fields

Field
Type
Description
Nullable
domain
string
The tracking domain to be displayed to the Affiliate {/campaign/domains}
Yes

Response body parameters

1
{
2
"success": false,
3
"data": {
4
"message": "Link already exists!!",
5
"tracking_link": "http://dobolly.com/{id}",
6
"link": {
7
"user_id": {affiliateId},
8
"ad_id": {campaingId},
9
"domain": "dobolly.com",
10
"_id": {id},
11
"live": true,
12
"created": "2016-10-08",
13
"modified": null,
14
"meta": [],
15
}
16
}
17
}
Copied!
Last modified 1yr ago