Example Usage of the HTTP API
Introduction
To use the HTTP API, two mandatory parameters are required:
JENTIS User ID
Why? Gain access to the JENTIS User Storage.
JENTIS Session ID
Why? Connect to the same Session.
Optional:
Consent Information
Why? You need to respect the consent decision of the user!
Mandatory Data from the Website
JENTIS User ID
The JENTIS User ID is stored in the cookie jts-rw with the following example:
%7B%22u%22%3A%2280791172425362871393019%22%7DAfter URL-decoding:
{"u":"80791172425362871393019"}To access the value via JavaScript, use:
JENTIS Session ID
The JENTIS Session ID is stored in the cookie jctr_sid with the following example:
To access the value via JavaScript, use:
Optional Data from the Website
Consent Information
The Consent Information is stored in the localStorage key jentis.consent.data with a structure similar to:
Required Data from the above structure, we only need the vendors property:
To access the vendor consent information safely, use the built-in JENTIS method:
Example Request with Consent Data
Example Request without Consent Data
Last updated
Was this helpful?