X

X API v2

REST discovered

Details
URL
https://api.x.com/2
Docs
https://docs.x.com/x-api/overview
Authentication
X app Bearer Token bearer discovered Get token ↗

In the X Developer Console, create or open an app, then copy the app's Bearer Token from its keys/tokens page. The docs describe Bearer Token generation as part of app credentials in Apps and the quickstart in Make Your First Request.

OAuth 2.0 oauth2 discovered
OAuth 2.0 — pre-registered app required

This server does not support automatic client registration (no DCR or CIMD), so the MCP client cannot register itself. Create an OAuth app in the provider's developer settings, allow-list your MCP client's OAuth callback URL as a redirect URL, and give the client that app's client ID and secret. Then connect and approve access in the browser.

X OAuth 1.0a app + user tokens compound discovered Get key ↗

In the X Developer Console, create or open an app and copy its API Key and API Key Secret. For OAuth 1.0a user-context access, also obtain an Access Token and Access Token Secret for a user authorized against that app. X documents these app credentials in Apps and notes OAuth 1.0a user-context support in Authentication.