> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect BrowserStack with API Key – StackOne Hub

> Link a BrowserStack account in the StackOne Hub using API Key. End-user guide to authorize the integration and start using BrowserStack actions.

> [!WARNING]
>
> The [BrowserStack Enterprise API](https://www.browserstack.com/docs/enterprise/api-reference/introduction) needs the Enterprise plan, and BrowserStack lets only members with the Owner or Admin role use it. BrowserStack gives access to the Users and Teams APIs through its support team, so ask BrowserStack Support to enable them before you connect.

## Ask BrowserStack to turn on the Users and Teams APIs

BrowserStack gives access to its Users and Teams APIs through its support team.

<ul>
  <li>Ask [BrowserStack Support](https://www.browserstack.com/contact) to enable the Users and Teams REST APIs for your organization. BrowserStack lists the Enterprise plan and this request under **What You'll Need** in its [Enterprise API reference](https://www.browserstack.com/docs/enterprise/api-reference/introduction).</li>
  <li>Connect once BrowserStack tells you the APIs are on for your organization.</li>
</ul>

## Choose whose key to use

The username and access key belong to one BrowserStack member, and StackOne acts with that member's role.

<ul>
  <li>Use a Group Admin, BrowserStack's name for a member whose **IAM Role** is **Admin** for the whole organization rather than for one team. BrowserStack says this role can invite and remove members, change member roles, and change which products other members can use.</li>
  <li>An Owner also works. There is one Owner per organization. The Owner adds subscription changes, which StackOne does not use, and can read the audit log without changing any setting.</li>
  <li>Do not use a Team Admin, whose key reaches only its own team's members.</li>
  <li>BrowserStack documents one access level for the Users and Teams APIs, Owner or Admin, and names no read-only key. The actions that create, change or remove users and teams use the same key. If auto user provisioning is on, BrowserStack sends team creation and deletion to your identity provider instead.</li>
  <li>Use an Admin who will stay in the organization. BrowserStack suggests resetting access keys when members leave the organization.</li>
</ul>

## Let a Group Admin read the audit log

BrowserStack lets only the Owner view audit logs by default, and the audit log read is the only action that needs more than a Group Admin key. Skip this if you do not need the audit log read or you use the Owner's key. Sign in to BrowserStack as the Owner.

<ul>
  <li>Open [Settings > Permissions](https://www.browserstack.com/accounts/settings/permissions).</li>
  <li>Select the **IAM roles** tab.</li>
  <li>Under **Account Insights and Reports**, select **Allow Group Admins to view Audit logs**.</li>
  <li>Select **Save**.</li>
</ul>

## Copy your username and access key

Sign in to your [BrowserStack account](https://www.browserstack.com/users/sign_in) as the Group Admin or Owner you chose, and open the [Settings page](https://www.browserstack.com/accounts/settings) under **Account** > **Settings**.

**1. Copy the username and access key**

Under **Local Testing**, select the copy icon next to each value.

<ul>
  <li>Copy the **Username** across.</li>
  <li>Copy the **Access Key** across.</li>
</ul>

![BrowserStack Settings page with the copy buttons for Username and Access Key under Local Testing highlighted](https://mintcdn.com/stackone-60/shEZUsyIRboZBeFm/connectors/browserstack/images/custom-config-copy-credentials.png?fit=max\&auto=format\&n=shEZUsyIRboZBeFm\&q=85\&s=7be5e69c9804db53eefce053a774268b)

## Rotate or replace the access key

An access key does not expire by default. If your organization turns on auto-rotation, BrowserStack replaces every user access key after the period it sets and emails the member 14 days before. **Key validity status** under **Settings** > **Product** > **Local Testing** shows the next date.

**1. Generate a new access key**

Sign in to BrowserStack as the key's owner and select the **User Profile** icon in the top-right corner.

<ul>
  <li>Select **Account & Profile** > **My Profile**.</li>
  <li>In **Authentication & Security**, select the rotate icon next to **Access Key**.</li>
  <li>Select **Confirm**.</li>
  <li>Copy the new **Access Key** across.</li>
</ul>

![BrowserStack My Profile page with the rotate icon next to Access Key under Authentication & Security highlighted](https://mintcdn.com/stackone-60/shEZUsyIRboZBeFm/connectors/browserstack/images/custom-config-rotate-access-key.png?fit=max\&auto=format\&n=shEZUsyIRboZBeFm\&q=85\&s=fc2a9948c76f5ea4158cf8087df25ab0)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/connect/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/browserstack/guides/webhook-setup.md)
>
> Configure receiving Events for BrowserStack into StackOne.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.