Skip to main content
You need an X developer account with access to the X Developer Console. X API usage is billed per request, so your account needs credits (Billing > Credits) before StackOne can call the API.

Create an X developer app

Register an app in the X Developer Console to get OAuth 2.0 credentials.

1

Create the app

Sign in to your X Developer Console account with your X account. In the left sidebar, under Access, click Apps, then click Create App.

  • In the Create New Client Application dialog, enter the app details.
  • Application Name: e.g. StackOne Integration
  • Project Access: keep your project selected so the app’s keys can call the X API
  • Click Create.
  • On the Application Created Successfully dialog, click Close.
The Create New Client Application dialog with the Application Name field, project checkbox and Create button highlighted

Configure user authentication

Enable OAuth 2.0 on the app and register StackOne’s redirect URL.

1

Open the user authentication settings

On the Apps page, open the app you created.

  • Open the Keys & Tokens tab.
  • Under OAuth 2.0 Keys, next to User authentication settings, click Set up.
The app's Keys & Tokens tab with the Set up button for User authentication settings highlighted
2

Choose the app permissions and type

Enables actions: Add List Member, Append Media Upload, Block User, Create Bookmark, Create DM Conversation And Send Message, Create DM Message By Conversation ID, Create DM Message By Participant ID, Create List, Create Post, Delete Bookmark, Delete List, Delete Post, Finalize Media Upload, Follow User, Get Authenticated User, Get Blocked Users, Get Bookmarks, Get DM Conversation Events, Get DM Events, Get Liked Posts, Get Liking Users, Get List, Get List Members, Get List Posts, Get Media Upload Status, Get Muted Users, Get Pinned Lists, Get Post, Get Quoted Posts, Get Reposted By, Get Space, Get Spaces By Creator, Get Timeline, Get User By ID, Get User By Username, Get User Followers, Get User Following, Get User List Memberships, Get User Mentions, Get User Owned Lists, Get User Posts, Hide Reply, Initialize Media Upload, Like Post, Mute User, Pin List, Remove List Member, Repost Post, Search Recent Posts, Search Spaces, Unblock User, Unfollow User, Unlike Post, Unmute User, Unpin List, Unrepost Post, Update List, Upload Media

On the Authentication settings page, set how the app accesses X. X has no OAuth 2.0 scope settings on the app. The person linking an account approves the scopes listed when they sign in to X, together with offline.access, which keeps the connection signed in after the two-hour access token expires.

  • App permissions: Read and write and Direct message
  • Type of App: Web App, Automated App or Bot (Confidential client), the type that issues a Client Secret
The Authentication settings page with Read and write and Direct message and Web App, Automated App or Bot selected
3

Add the redirect URL and save

Under App info, fill in the required fields.

  • Callback URI / Redirect URL: the Callback URL from your Connector Profile
  • Website URL: your company website
  • Click Save Changes.
The App info section with the Callback URI / Redirect URL and Website URL fields and the Save Changes button highlighted

Copy the OAuth 2.0 credentials

After you save, X displays the app’s OAuth 2.0 Client ID and Client Secret.

1

Copy the Client ID and Client Secret

In the Did you save your OAuth 2.0 Client Secret? dialog, click the copy button next to each value.

  • Copy the Client ID into your Connector Profile.
  • Copy the Client Secret into your Connector Profile.
  • The Client Secret is only displayed once. If you lose it, open the app’s Keys & Tokens tab and click Regenerate next to Client Secret.
  • Click Close.
The Did you save your OAuth 2.0 Client Secret? dialog with the copy buttons for Client ID and Client Secret highlighted

Create the StackOne Connector Profile

1

Create a Connector Profile

Enable the connector and create a Connector Profile in your project. See Setup Connector Profile.
2

Link an Account

Once the Connector Profile is created, continue to link an account.