HomeDev guideAPI ReferenceGraphQL
Dev guideUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

How to authenticate with the Opti ID User Management and SCIM APIs.

Opti ID User Management APIs

The Opti ID User Management APIs require an OAuth 2.0 bearer token. To get your bearer token:

  1. Go to the Opti ID home dashboard: https://home.optimizely.com/dashboard

  2. Open your browser's developer tools. You can get your bearer token on the Console or Application tab:

    • Console tab – Run the following command and copy the token that is returned:

      JSON.parse(localStorage.getItem("okta-token-storage")).accessToken.accessToken
      

    • Application tab – Go to Local storage > https://home.optimizely.com > okta-token-storage, then expand and copy the accessToken value.

  3. Include your bearer token in the headers of your Opti ID User Management API requests. For example:

    curl --request GET \
         --url https://usermgmt-api.optimizely.com/api/attributes \
         --header 'accept: application/json' \
         --header 'authorization: Bearer examplebearertoken'
    

Opti ID SCIM APIs

The Opti ID SCIM APIs require an API key that you must request from Optimizely Support. Store your API key safely and include it in the headers of your Opti ID SCIM API requests. For example:

curl --request GET \
     --url https://identity-api.optimizely.com/api/scim/v2/groups \
     --header 'accept: application/json'
     --header 'Authorization: exampleapikey' \

Try It feature

You can make API requests directly in the documentation using the Try It feature. Enter your bearer token or API key, enter query parameters, and click Try It.

🚧

Important

The Try It feature makes requests against your production data, so use caution when making any requests that change your data (POST, PUT, PATCH, and DELETE).