Skip to content
X API Setup

Connect X to Postly

Create an X developer app, configure authentication, and connect your official X API credentials securely for publishing.

Setup Guide

X API no longer supports free API keys for this setup. Your X developer account must be on the Pay Per Use tier before connecting to Postly. Keep your Consumer Key, Secret Key, Bearer Token, Client ID, and Client Secret private.

01

Create a new X app

Open the X Developer Console, go to Projects & Apps, then create a new client application.

Open X Developer Console
Application Name
Enter your app name
Environment
Production
API access tier
Pay Per Use
Tip: click the image to enlarge it.
02

Copy your generated credentials

After creating the app, copy the credentials shown by X and save them securely. Then select your new X app and open the keys and tokens area where your Bearer Token, OAuth 1.0 keys, and OAuth 2.0 keys are shown.

Some credentials may only be shown once. Copy them exactly as displayed to avoid connection issues.
Bearer Token
Copy generated or regenerate
Client ID
Copy from OAuth 2.0 Keys
Client Secret
Copy from OAuth 2.0 Keys
Tip: click the image to enlarge it.
03

Set up user authentication

Click "Set up" under User authentication settings, then configure your app permissions, app type, callback URL, and website information.

App permissions
Read and write
Type of App
Web App, Automated App or Bot
Callback URL / Redirect URL
https://api.postly.ai/v1/workspaces/oauth/callback/x.com
Website URL
https://postly.ai
Use your website URL.
Terms of Service
https://postly.ai/terms
Use your terms of service URL.
Privacy Policy
https://postly.ai/privacy
Use your privacy policy URL.
Tip: click the image to enlarge it.
Tip: click the image to enlarge it.
Tip: click the image to enlarge it.
04

Update existing authentication settings

If authentication has already been configured, click the "Edit Settings" link instead of "Set up", then review and update the same permissions, app type, callback URL, and website information.

Tip: click the image to enlarge it.
05

Connect and finish in Postly

Return to Postly, open Social Accounts, choose Connect X, paste your X API credentials, then save and continue. You can also connect multiple X accounts on Postly.

Client ID
Paste from X OAuth 2.0 Keys
Client Secret
Paste from X OAuth 2.0 Keys
Bearer Token
Paste from App-Only Authentication
Go to Dashboard
Tip: click the image to enlarge it.