Applications and Installation
An application is a web product of a tenant in which Invantive Waypoint shows experiences. The applications are maintained under "Settings" on the tab "Applications". Registering, changing and deleting an application needs the role administrator.
Register an Application
An application is registered as follows:
- Choose "New Application" under "Settings".
- Enter a code of lower-case letters, digits and hyphens, a name, the default language and the origins. An origin is a scheme and a host without a path, such as
https://currencytools.example.com, one per line, at most 50. - Leave "Require a signature" ticked.
- Choose "Create".
- The page shows the public key of the application, starting with
wpt_pub_, and the first signing secret, starting withwpt_sec_. The signing secret is shown this once. Store it in the configuration of the server of the application and choose "I Stored It".
The code of an application never changes. Register a new application instead.
The form for a new application:

After "Create" the page of the application opens, with the origins, the snippet to copy, the signing secrets and the public key:

The default language is the language of the texts that editors write; the page offers the languages of the table under Translations. "Note" holds a remark for the other editors, such as which team owns the application.
Origins
The snippet runs only on the origins of its application. The client API answers a browser from another origin with itgenwpt305 and does not allow it through CORS. A request with an unknown public key is refused with itgenwpt304. Refused requests are counted per hour for the system operators of Invantive.
Require a Signature
"Require a signature" is ticked for a new application. Waypoint then accepts an end user only with a valid signature of the server of the application. When it is switched off, Waypoint also accepts an end user without a signature, and anyone who knows the id of a colleague can then be that colleague; the session and its events record that the end user was not proved. A signature that is sent is checked all the same: a wrong one is refused with itgenwpt316 and is never taken for none. Switch it off only on a test application. The tenant API names the setting signature_required.
Switch
"The snippet is switched on" turns the snippet of an application on or off without a release of the application. While it is off, the client API shows no experiences there.
Signing Secrets
The server of the application signs the id of the signed-in user with the signing secret. Waypoint keeps the secret encrypted and never shows it again. An application has two secrets, so a secret can be replaced without downtime:
- Choose "Rotate Secret". The new secret is shown once.
- Place the new secret in the configuration of the server of the application.
- The previous secret stays accepted for 7 days. The page shows until when.
Installation of the Snippet
The page of an application shows the snippet to place in every page after log-on:
<script async src="https://waypoint.invantive.eu/v1/loader.js" data-key="wpt_pub_3f9a7d21c0e4b5a6" data-user="u-7f3c0a" data-signature="t=1763633400;s=9c1e...b42f"></script>
The attributes are:
data-key: the public key of the application.data-user: the id of the end user, as the application knows it. Choose an id that is stable and contains no personal data, such as a uid; not an e-mail address. The same id is used by the tenant API when end users and their attributes are written. At most 240 characters, without spaces.data-signature:t=<unix time>;s=<signature>, where the signature is the lower-case hexadecimal HMAC-SHA256 (RFC 2104) of the text<unix time>.<user id>, keyed with the signing secret as UTF-8 text.data-language(optional): the language of the end user as an ISO 639-1 code. Without it the snippet takeslangof thehtmlelement, then the language of the browser.
The signature is computed on the server, never in the browser. A page that is rendered for the signed-in user places the three attributes in the script tag; a single page application asks its own server for them after log-on. In C#:
long t = DateTimeOffset.UtcNow.ToUnixTimeSeconds();
using HMACSHA256 hmac = new(Encoding.UTF8.GetBytes(signingSecret));
string s = Convert.ToHexStringLower(hmac.ComputeHash(Encoding.UTF8.GetBytes($"{t}.{userId}")));
string attribute = $"t={t};s={s}";
The same signature in Node.js:
import { createHmac } from "node:crypto";
const t = Math.floor(Date.now() / 1000);
const s = createHmac("sha256", signingSecret).update(`${t}.${userId}`).digest("hex");
const attribute = `t=${t};s=${s}`;
In Python:
import hmac, hashlib, time
t = int(time.time())
s = hmac.new(signing_secret.encode("utf-8"), f"{t}.{user_id}".encode("utf-8"), hashlib.sha256).hexdigest()
attribute = f"t={t};s={s}"
A signature is valid for 24 hours. An expired signature is refused with itgenwpt300, a signature of another user or secret with itgenwpt316, and a signature in another form with itgenwpt317. The page then goes on without Waypoint.
Check the Installation
The installation is checked as follows:
- Sign in to the application and open a page. The page must work as before: Waypoint shows nothing until an experience is published for that page.
- Publish a tooltip or a modal for everyone on that page, see Get Started with Invantive Waypoint, or open the page with
?waypoint=<code>of a published experience. - When nothing shows, look up the message code of the refusal in Message Codes. The usual causes are an origin that is not registered (
itgenwpt305), a wrong public key (itgenwpt304) and a signature that has expired (itgenwpt300) or belongs to another secret (itgenwpt316). - A step that does not find its element appears under "Needs Attention" on the tab "Overview".
Content Security Policy
An application with a Content Security Policy adds https://waypoint.invantive.eu to script-src, style-src, connect-src and img-src. The snippet uses no inline script, no style attribute, no cookie and no other host.
Anchors
A step of a tour or a tooltip points at an element of the page. The most stable anchor is an attribute data-waypoint that the application places on the element, such as <button data-waypoint="new-schedule">. An id of the element is the next choice. A CSS selector works as well, but breaks when the page changes; the console marks it as fragile. See Experiences.
Consent
Showing experiences needs no consent. Product analytics are sent only after the page passes the consent of the end user for statistics to the snippet, as described in Snippet and Script Interface and Privacy and Consent.
Tokens and OData
The tab "Tokens and OData" under "Settings" creates tokens for programs, such as a job that writes end users or Power BI. A token has a name, scopes and optionally an expiry, and starts with wpt_tok_. A token without an expiry never expires. It is shown once; Waypoint keeps only its hash. The scopes are:
end_users.read: read end users and companies.end_users.write: create and change end users and companies.end_users.delete: delete an end user with all their data.events.write: send events from the server of an application.content.write: write segments, themes and experiences as drafts.content.publish: publish drafts. Only a token with "The token may publish" may publish.settings.write: maintain applications and tokens.analytics.read: read the analytics and the OData service.
A token is created as follows:
- Enter a name that tells which program uses it, such as
power-bi-analytics. - Tick only the scopes that the program needs;
analytics.readis ticked by default. - Leave "The token may publish" empty unless the program must publish.
- Enter the number of days in "Valid for days", or leave it empty for a token that never expires.
- Choose "Create". The token is shown once.
"Revoke" stops a token at once. The page also shows the address of the OData service of the tenant. See Tenant API and OData Service.
