SpecOS SpecOS icon Documentation

App IDs

An App ID is a unique public-facing key used to identify and authenticate a Widget Embedding. It is the central piece of configuration that connects your embedded widget to Spec-Right's services.

Structure

An App ID consists of a prefix and a unique identifier:

  • Prefix: sr_
  • Identifier: A 32-character hexadecimal string.

Example: sr_a1b2c3d4e5f678901234567890123456

How it Works

When you create a new App ID in the Spec-Right dashboard, a unique key is generated and associated with your user account. This key is meant to be public and can be included in the client-side code of your application where you embed the widget.

Security: Domain Whitelisting

To ensure that your App ID is only used on your approved websites, each App ID is protected by a domain whitelist. When a widget attempts to initialize using your App ID, Spec-Right's servers check the domain from which the request originated.

  • If the domain is on your whitelist, the widget will load.
  • If the domain is not on your whitelist, the request will be rejected, and the widget will not load.

This prevents others from copying your widget code and using it on their own domains. You can manage the list of whitelisted domains for each App ID in your dashboard.

Usage Tracking

Each App ID also tracks usage metrics. This allows you to monitor how often your widget is being used and see which features are most popular. The following are tracked:

  • Usage Count: The total number of interactions with the widget.
  • Usage Limit: A configurable limit on the number of interactions per month.
  • Button Clicks: Clicks on individual buttons within the widget are tracked to provide insights into user behavior.

See also: Widget Integrations