- Optimizely X Web Experimentation
- Optimizely X Web Personalization
- Optimizely X Web Recommendations
- Optimizely Classic
THIS ARTICLE WILL HELP YOU:
- Connect to the Optimizely REST API with OAuth
- Create and manage applications that access Optimizely data in your account
Optimizely's REST API lets you create and manage Optimizely projects and experiments -- and analyze results -- from other applications. For example, our solutions partners and technology partners use the REST API to:
Use Optimizely to A/B test headlines from within Wordpress
Create Optimizely audiences based on information collected from your Data Management Platform
Manage Optimizely projects from an internal system
Pull results data into an internal dashboard or results widget
Send email alerts when certain results are achieved
Applications that are built on the REST API (such as technology integrations) can use OAuth to access Optimizely data on the customer's behalf by putting them through an authorization flow (similar to how you can log into many accounts via your Facebook or Google+ login).
Alternatively, here's how to generate an API token for authenticating with the REST API:
This article walks you through using OAuth to connect to Optimizely's REST API.
Authorize, view, and revoke applications that can access your data
You can grant trusted third-party applications access to your Optimizely account by logging in via a button that looks like this:
View authorized applications
You can always see a list of third-party applications that you have authorized to access your Optimizely data by going directly to the App Settings page in Optimizely Classic, or the Developers tab in Optimizely X.
Below, you'll see an example with two applications authorized.
To de-authorize a third-party application at any time, simply revoke it from this menu by clicking Revoke Access and confirming your decision. Once you revoke permissions, you can't authorize or re-authorize third-party applications from this menu. To do that, you'll have to go back to the app you want to authorize and go through the authorization process again.
To build integrations using Optimizely's REST API, reference our API Documentation, which covers the endpoints and calls you can use:
In Optimizely Classic, if you want to register a new application to access the API via OAuth:
Navigate to the Developers tab on the App Settings page.
Click Register a new application.
Enter the Application Name and Redirect URI.
In Optimizely X, if you want to register a new application to access the API via OAuth:
Navigate to Account Settings > Developers.
Click Register New Application.
Enter the Application Name and Redirect URL.