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

Authentication

Describes how to access the REST API using your access token provided in the authorization response.

Using the access token provided in the authorization response, your application can now access the REST API on behalf of the authorizing user. You can use the REST API as outlined in this documentation, except you should use a header in the format Authorization: Bearer [token] instead of Token: [token], as shown in the example below.

Your application should check for 403 errors in case the user has revoked application access, or the token has expired. To resume access, you must prompt users to repeat the authorization flow.

Example request

curl \
  -H "Authorization: Bearer abcdefghijklmnopqrstuvwxyz" \
  -X GET "https://api.optimizely.com/experiment/v1/projects/1234/"