X · Authentication Profile
X Authentication
Authentication
Authentication profile for the X API v2. Three schemes are declared in X's published contract and all three are documented as first-class methods: app-only Bearer for read-only public data, OAuth 2.0 Authorization Code with PKCE for user context (required for every write), and legacy OAuth 1.0a user context. Enterprise endpoints additionally accept Basic Auth.
X secures its APIs with http and oauth2 across 3 declared security schemes, as derived from its OpenAPI definitions. OAuth 2.0 is offered via the authorizationCode flow(s).
SocialSocial-MediaPostsUserDirect MessagesStreamingWebhookReal-TimeTrendsMediaSpacesContentConversationAgentsMCP
Methods: http, oauth2
Schemes: 3
OAuth flows: authorizationCode
API key in:
Security Schemes
OAuth2UserToken oauth2
BearerToken http
UserToken http
Source
Authentication Profile
Work with this as data
Every security artifact here is available over the APIs.io API and to AI agents over MCP.