Skip to main content
All CollectionsGetting Started
How to Setup Your Own X (Twitter) API
How to Setup Your Own X (Twitter) API
Updated over a week ago

We're currently facing issues with our X API app. We've reported this to the X team, and hopefully, it'll be resolved soon. Kindly setup your own API below to use X without interruption.

In this guide, we'll show you how to setup your own Twitter API keys for seamless posting to Twitter.

Step 1: Create a Twitter Developer account

If you don't have a Twitter Developer account, you need to set one up. (Don't worry it's free - for the most basic one and it only takes a few minutes)

Go to https://developer.twitter.com and sign up for a free account.

Once on this page:

1 - select the Free plan

Click on Free…

2 - click on Sign Up for Free Account

Click on Sign up for Free Account

3 - complete the description, check the boxes, then click Submit.

For the brief description, you can add this or something similar: "Using Twitter's API, I'll schedule and publish tweets, I will leverage Twitter's API data to display tweet performance analytics, including impressions, engagement rate, link clicks, and other metrics."

Click on Describe all of your use cases of Twitter’s data and API:…

You should get access to Twitter's Developer portal immediately.

Step 2: Setting up an app + API Keys

On the left side menu of the Developer Portal, click the Products menu, then click the "Twitter API v2" project.

You'll see all features, the number of tweets per month, and an overview of the Free plan. You will be able to publish up to 1500 tweets per month, which covers scheduling and social inbox for most users.

Then, on the left side menu of the Developer Portal, click the Projects & Apps menu.

Click on the second project that will appear under Default project (the one that starts with your Twitter account name), on the left side menu.

Under User authentication settings, click the Set up button.

Set up your user authentication as follows:

  • Under App permissions choose Read and write.



Under Type of App choose Web App, Automated App or Bot.

Select "WebApp"

  • Under App info add this URL in Callback URI / Redirect URL:

  • Under Website URL you can add a link to your own website.

Now Save your settings

Click on Yes

Now, on the top menu, click on Keys and tokens

On Consumer Keys (first option on the Keys and tokens screen), you will see the API Key and Secret section. This is what you need to connect your Twitter account to OnlySocial.

Click on Consumer Keys

Click on the Regenerate button on the right side.

Click on Regenerate

Confirm by clicking Yes, regenerate.

Click on Yes, regenerate

A window with your API Key and API Key Secret will open. Save these to add to OnlySocial later, then click Yes, I saved them.

💡Hint: Note them down, because they are important! Copy and paste these 2 API keys and have them saved in a document or a safe place.

Now head over to OnlySocial to setup the API keys.

Step 3: Setting up Your Keys on OnlySocial

Head over to your OnlySocial Workspace, and follow the guide below:

Click on the user menu and click on Settings

Now click on Services

Now enter your API key and Secret in the provided fields.

Under Tier, select Free (except you've upgraded to the Basic Plan)

Tick the Active box. And Save

Now you can proceed to Connect/Reconnect your X Twitter profiles by going to Accounts > Add account > X

Troubleshooting

If you're unable to add your profile to OnlySocial after saving the correct keys. The most common reason is because your App isn't in a Project on the Twitter Developer dashboard.

To resolve, go to your Twitter developer Dashboard.

You'll see a screen like the below:

Click on the Add App button

Add an existing app:

Select the app that you just created.

When your app is added to the project, you're good to go!

Did this answer your question?