---
title: Authentication
slug: opti-id/api
docTags: 
createdAt: 2026-07-30T20:39:04.172Z
---

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).
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
JSON.parse(sessionStorage.getItem("okta-token-storage")).accessToken.accessToken
```

![](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/LOsmikHG88cUpUrf_OFn3_bc5383a3c6368e1f69b1ac3b273bf29451afeb85d9ab3458bf9be8f8854c995f-image.png)

:::Paragraph{listStyleType="disc" indent="2"}
**Application tab** – Go to **Session storage >**`https://home.optimizely.com` **> okta-token-storage**, then expand and copy the **accessToken** value.
:::

![](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/4zOc2yzexgdQ9Eg-r-nZ7_f5d80af1049867873fc1955b340a58f230a285e22c10a02801fba33d1dc182c5-image.png)

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

```curl
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
curl --request GET \
     --url https://identity-api.optimizely.com/api/scim/v2/groups \
     --header 'accept: application/json'
     --header 'Authorization: exampleapikey' \
```

## Try it feature

Each endpoint page in the API reference has an interactive **Try it** panel that sends real requests from your browser. To use it:

1. In the **Credentials** section, provide your authentication:
   - **Opti ID User Management API** – click **Use Your Own Token** and paste the bearer token you copied above.
   - **Opti ID SCIM API** – enter the API key you requested from Optimizely Support.
2. Fill in any required path, query, or body parameters.
3. Click **Try it** to send the request and view the response.

:::hint{type="warning"}
**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).
:::

![](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/Ix5BS4roCyFVPH0IvySpz-20260902-132106.png)
