Personal Token authentication
To authenticate, use a token generated from the link above in the request header, as shown in the example below. All API request examples in this documentation use the same header.
curl -H "Authorization: Bearer abcdefg123456" \ "https://api.optimizely.com/v2/projects"
You can also write applications that authenticate with the REST API via OAuth 2.0. For more details on connecting applications via OAuth 2.0, refer to our OAuth 2.0 documentation.
Using the wrong token will fail with error
403 - Authentication Failed. If
you forget to add the token or set the token on the wrong header / on the body
the request will fail with
401 - Unauthorized.