---
title: "Applications and Installation"
description: "How an application is registered in Invantive Waypoint and how the snippet is placed in it with a signed user id."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/console/applications-and-installation
original: https://documentation.invantive.eu/en/docs/console/applications-and-installation
updated: 2026-11-19T00:00:00Z
license: https://documentation.invantive.eu/en/
---

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.
- Choose "Create".
- The page shows the public key of the application, starting with `wpt_pub_`, and the first signing secret, starting with `wpt_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.

## 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.

## 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:

```html
<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](https://www.rfc-editor.org/rfc/rfc2104)) 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 takes `lang` of the `html` element, then the language of the browser.

The signature is computed on the server, never in the browser. In C#:

```csharp
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}";
```

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.

## 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 [[Invantive Waypoint/Console/Experiences|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 [[Invantive Waypoint/Interfaces/Snippet and Script Interface|Snippet and Script Interface]] and [[Invantive Waypoint/Reference/Privacy and Consent|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 an expiry, and starts with `wpt_tok_`. 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.

"Revoke" stops a token at once. The page also shows the address of the OData service of the tenant. See [[Invantive Waypoint/Interfaces/Tenant API|Tenant API]] and [[Invantive Waypoint/Interfaces/OData Service|OData Service]].

## Release Notes

- [Invantive Cloud](/en/release-notes/products/invantive-cloud)
  - [26.0 to 27.0](/en/release-notes/products/invantive-cloud?step=26.0-to-27.0)
  - [25.0 to 26.0](/en/release-notes/products/invantive-cloud?step=25.0-to-26.0)

