HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

Personal token authentication

This topic describes how to authenticate using the token generated from the Optimizely application.



Visit app.optimizely.com/v2/profile/api to generate a personal token.

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" \

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.

Did this page help you?