Introduction

Visitor Data Api allows the storage of visitor-related data associated with user interactions on a website. It provides functions to gather and process information about visitors.

API Functions

SaveData

The SaveData method enables the saving of visitor-related data associated with user interactions on a website.

Request Structure:

Parameters:

Headers:

It is recommended to include the following headers:

Example Usage:

curl --location '/VisitorData/SaveData/60/a0b47535-6f24-4e89-bbc3-b5419a11db05/6051d89f61f4c3cd18f1ac3007ec31a3' \\
--header 'content-type: application/json' \\
--header 'x-trueengage-apikey: XXX' \\
--data '
{
  "FirstName": "Kevin",
  "LastName": "McCallister",
  "Cart": [
    "Video Game",
    "AAA battery"
  ],
  "Address": {
    "Street": "671 Lincoln Ave.",
    "City": "Illinois",
    "Country": "US"
  }
}'

Security Note

Exercise caution when using the SaveData function. Ensure that the ApiKey is securely stored and not publicly exposed, as it authorizes requests to the API.

It is recommended to perform SaveData related queries from the backend or a secured environment to avoid potential security issues like misuse of the ApiKey.