Links

Retrieve a link

Scope: read

get/v1/links/{id}

Request

  • Base URL: https://api.affiliaterail.com
  • URL: https://api.affiliaterail.com/v1/links/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

Prefixed id (lnk_…)

Example:lnk_7uSyy9FqVLCFWrdPeZaK

Query parameters

string
OR
string[]
string
OR
string[]

Response

The link

idstring required

Prefixed id (lnk_…)

object'link' required
partner_idstring required

Prefixed id (part_…)

paramstring required
valuestring required
destination_urlstring required
urlstring required

The destination with the tracking parameter applied

short_urlstring nullable required
short_slugstring nullable required
short_domainstring nullable required
labelstring nullable required
rate_overrideunknown
created_atstring date-time required

ISO-8601, UTC

updated_atstring date-time required

ISO-8601, UTC

Example response

{
  "id": "lnk_7uSyy9FqVLCFWrdPeZaK",
  "partner_id": "part_7uSyy9FqVLCFWrdPeZaK",
  "created_at": "2026-08-21T10:15:30.000Z",
  "updated_at": "2026-08-21T10:15:30.000Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.