Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

The availability of features may depend on your plan type. Contact your Customer Success Manager if you have any questions.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Locate IDs used for APIs

Find the required IDs for the Optimizely Event API and Optimizely REST API for Optimizely Web Experimentation projects.

When using the Optimizely Web Experimentation APIs you will need several identifiers found in the Optimizely application.

For example:

Account ID

Go to Account Settings > Plan. The Account ID (account_id) is found at the top of the page to the right of the Account Information section.

Campaign ID, Experiment ID, Variation IDs, Entity IDs and keys

Go to the project you will be sending events for. Click Experiments > [your experiment name] > API Names.

Event API variableName on pageWhere to find in the UI
campaign_idCampaign IDUnder the Experiment Details section.
experiment_idExperiment IDLast ID in the Experiment Details section.
variation_id[your variation names]In the Variations section.

The variation_id is shown as the ID below the name of each variation.
entity_id[your event names]In the last section, named Events.
The entity_id is listed as the ID below the name of each event. It is to the left of the API name.
keyEvents > API NameIn the last section, named Events.
The key is listed as the API Name below the name of each event. It is to the right of the event ID.

The following image highlights each ID shown on the API Names page.