---
title: endpoint for delivering load events back to the tracking infrastructure via tracking link
slug: fluid-adserver-api/x5se-endpoint-for-delivering-load-events-back-to-the-tracking-infrastructure-via-tracking-link
docTags: 
createdAt: 2025-09-22T14:57:30.674Z
---

{
  "id": "kT1WzwOn3mzAPF1O0vKHK",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://localhost/load/{trackingData}",
    "servers": [
      {
        "url": "https://localhost/load/{trackingData}"
      }
    ],
    "name": "endpoint for delivering load events back to the tracking infrastructure via tracking link",
    "description": "<p>Load tracking endpoint which should be triggered when an ad is loaded in the page the user is visting.\nLinks to this API are <em>optionally</em> constructed by the spa-adserver for each sponsored product in the ad response.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "trackingData",
          "type": "string",
          "description": "<p>Encrypted and encoded tracking data that is constructed by the spa-adserver.</p>"
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "400",
        "description": "The tracking data string is manipulated and isn't the encrypted base64 encoded string coming\nfrom the spa-adserver.\n",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "The tracking data path variable is missing from the URL.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "hX-HkExdugi9wA0hUlY9r",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://localhost/load/{trackingData} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "d7GTuguMIgCvb2gxz1m7z",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://localhost/load/{trackingData}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "Stb4hgbBYfDgms7rw5TW0",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://localhost/load/{trackingData}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "hebbFP1FsmPfB773eF4fp",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://localhost/load/{trackingData}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "hX-HkExdugi9wA0hUlY9r"
    },
    "results": {
      "languages": [
        {
          "id": "9O8TyUhu4MW-VTNZkcz_3",
          "language": "200",
          "code": "// OK\n"
        },
        {
          "id": "ZG_Xd5PDIxHCJudT_Vkiz",
          "language": "400",
          "code": "// The tracking data string is manipulated and isn't the encrypted base64 encoded string coming\nfrom the spa-adserver.\n"
        },
        {
          "id": "ww50Sfwqxwb7zXkNhAtZJ",
          "language": "404",
          "code": "// The tracking data path variable is missing from the URL.\n"
        }
      ],
      "selectedLanguageId": "9O8TyUhu4MW-VTNZkcz_3"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}