> ## 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 X (Twitter) with App-Only Access Token – StackOne Hub

> Link a X (Twitter) account in the StackOne Hub using App-Only Access Token. End-user guide to authorize the integration and start using X (Twitter) actions.

> [!WARNING]
>
> You need an X developer account with access to the [X Developer Console](https://console.x.com). X API usage is billed per request, so your account needs credits (**Billing** > **Credits**) before StackOne can call the API.

## Create an app and copy its Bearer Token

A Bearer Token gives app-level read access to public X data without a user signing in. A new app shows its Bearer Token once, when you create it.

**1. Sign in to the X Developer Console**

Sign in to your [X Developer Console account](https://console.x.com) with your X account.

<ul>
  <li>In the left sidebar, under **Access**, click **Apps**.</li>
</ul>

![The X Developer Console dashboard with Apps highlighted in the left sidebar](https://mintcdn.com/stackone-60/oZiXcIjXvd3i3Tav/connectors/x/images/bearer_token-config-open-apps.png?fit=max\&auto=format\&n=oZiXcIjXvd3i3Tav\&q=85\&s=1c2fe4e4c1521a5227fac8d13d461cfe)

**2. Start a new app**

On the **Apps** page, click **Create App**. If you already have an app, skip to the next section to regenerate its Bearer Token.

![The Apps page with the Create App button highlighted](https://mintcdn.com/stackone-60/oZiXcIjXvd3i3Tav/connectors/x/images/bearer_token-config-create-app.png?fit=max\&auto=format\&n=oZiXcIjXvd3i3Tav\&q=85\&s=a579a4c34ea4c12c50e9ce365ed0a70c)

**3. Name the app and create it**

In the **Create New Client Application** dialog, enter the app details.

<ul>
  <li>**Application Name**: e.g. `StackOne Integration`</li>
  <li>Under **Project Access**, keep your project selected so the app's keys can call the X API.</li>
  <li>Click **Create**.</li>
</ul>

![The Create New Client Application dialog with the Application Name field, project checkbox and Create button highlighted](https://mintcdn.com/stackone-60/oZiXcIjXvd3i3Tav/connectors/x/images/bearer_token-config-name-app.png?fit=max\&auto=format\&n=oZiXcIjXvd3i3Tav\&q=85\&s=11b2492817f37641b309a2b9efae5df4)

**4. Copy the Bearer Token**

In the **Application Created Successfully** dialog, click the copy button next to **Bearer Token**.

<ul>
  <li>Copy the **Bearer Token** across.</li>
  <li>These keys are shown only once. Store the Bearer Token securely for use later, then click **Close**.</li>
</ul>

![The Application Created Successfully dialog with the copy button next to Bearer Token highlighted](https://mintcdn.com/stackone-60/oZiXcIjXvd3i3Tav/connectors/x/images/bearer_token-config-copy-new-token.png?fit=max\&auto=format\&n=oZiXcIjXvd3i3Tav\&q=85\&s=4bef6cc4d82d8ada9a850d48db4ce74e)

## Regenerate the Bearer Token of an existing app

Use this if your app already exists or you no longer have its Bearer Token.

**1. Open your app**

On the **Apps** page, click the app you want to use.

![The Apps page with an app highlighted in the list](https://mintcdn.com/stackone-60/oZiXcIjXvd3i3Tav/connectors/x/images/bearer_token-config-open-app.png?fit=max\&auto=format\&n=oZiXcIjXvd3i3Tav\&q=85\&s=7a2356226320de12a5307f0121c02215)

**2. Generate a new Bearer Token**

On the **Keys & Tokens** tab, under **App-Only Authentication**, click **Regenerate** next to **Bearer Token**.

![The Keys & Tokens tab with the Regenerate button for Bearer Token highlighted](https://mintcdn.com/stackone-60/oZiXcIjXvd3i3Tav/connectors/x/images/bearer_token-config-regenerate-token.png?fit=max\&auto=format\&n=oZiXcIjXvd3i3Tav\&q=85\&s=6841fe12169f84645dd89aab8717856b)

**3. Confirm the regeneration**

In the **Regenerate Bearer Token** dialog, click **Yes, regenerate**.

<ul>
  <li>Regenerating replaces the previous Bearer Token. Anything still using the old token stops working.</li>
</ul>

![The Regenerate Bearer Token confirmation with the Yes, regenerate button highlighted](https://mintcdn.com/stackone-60/oZiXcIjXvd3i3Tav/connectors/x/images/bearer_token-config-confirm-regenerate.png?fit=max\&auto=format\&n=oZiXcIjXvd3i3Tav\&q=85\&s=3783305b6bc2e7c0399fefe15d03f7c3)

**4. Copy the new Bearer Token**

In the **Did you save your Bearer Token?** dialog, click the copy button next to the token.

<ul>
  <li>Copy the **Bearer Token** across.</li>
  <li>The Bearer Token is only displayed once and cannot be retrieved later. Store it securely for use later, then click **Close**.</li>
</ul>

![The Did you save your Bearer Token? dialog with the copy button highlighted](https://mintcdn.com/stackone-60/oZiXcIjXvd3i3Tav/connectors/x/images/bearer_token-config-copy-regenerated-token.png?fit=max\&auto=format\&n=oZiXcIjXvd3i3Tav\&q=85\&s=ea0384e8a3ee3839f385faa2acec0adc)

## 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/ai-platforms/overview.md).

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


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