Find IDs for API calls

  • Updated
  • Optimizely Web Experimentation
  • Optimizely Personalization
  • Optimizely Performance Edge
  • Optimizely Feature Experimentation
  • Optimizely Full Stack (Legacy)

Troubleshooting and using Optimizely Experimentation or Optimizely Personalization REST APIs requires access to various IDs.

For example, masking descriptive names in Optimizely Web Experimentation, Optimizely Performance Edge, or Optimizely Personalization prevents seeing the name of a variation or campaign in the console. Instead, the JavaScript API, console log, and network panel return a masked identifier: a string of numbers. This is great for privacy, but challenging to troubleshoot.

Based on what type of project you have, you can use the API Names tab to find:

  • Account ID (for the specific experiment or campaign).
  • Experiment or Campaign IDs.
  • Variation IDs.
  • Audience IDs.
  • Page IDs.
  • Event IDs.
  • Project IDs.
  • Flag IDs.
  • Rule IDs.
  • Environment Keys.

For information about Account IDs, see Access the Account ID and multi-account login.

Optimizely Web Experimentation, Optimizely Performance Edge, and Optimizely Personalization

  1. Go to your Optimizely Web Experimentation, Optimizely Performance Edge, and Optimizely Personalization project.
  2. Select your experiment or campaign.

    SelectExperimentorCampaign.png

  3. Select the API Names tab.

    APINames.png

    The API Names tab contains various unique identifiers that you can use with Optimizely Web Experimentation/Optimizely Personalization APIs and Optimizely Performance Edge APIs

Optimizely Full Stack (Legacy)

  1. Go to your Optimizely Full Stack (Legacy) project.
  2. Select your A/B Experiment, Feature Test, or Multi-armed Bandit.
    full-stack-experiments.png
  3. Select the API Names tab.

    api-names-not-flags.png

    The API Names tab contains various unique identifiers, such as the Account ID, Project ID and Experiment ID, that you can use with Optimizely Full Stack (Legacy) APIs and SDKs

Optimizely Feature Experimentation

  1. Go to your Optimizely Feature Experimentation project.
  2. Select a flag.
  3. Select the API Values tab. 
  4. Select the Environment and Rule for which you want to view the ID and Key.

    This page contains various unique identifiers and keys for your flag and rules that you can use with the Optimizely Feature Experimentation APIs and SDKs

    At least one rule must be added to an Environment for it to appear on the API Values tab. If no rules are added, you see a message saying, No rules found for this environment, please select another environment.