Twitter/X · Authentication Profile

Twitter X Authentication

Authentication

Twitter/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).

CompanySocialSocial-MediaPostsReal-TimeStreamingNewsDeveloper Platform
Methods: http, oauth2 Schemes: 3 OAuth flows: authorizationCode API key in:

Security Schemes

BearerToken http
scheme: bearer
OAuth2UserToken oauth2
· flows: authorizationCode
UserToken http
scheme: OAuth

Source

Authentication Profile

Raw ↑
generated: '2026-07-21'
method: searched
source: openapi/twitter-x-x-api-v2-openapi.json
docs: https://docs.x.com/fundamentals/authentication/overview
notes: >-
  Documented methods — OAuth 1.0a User Context (legacy, still supported for
  user actions), App-only Bearer token (public data, app-level rate limits),
  OAuth 2.0 Authorization Code with PKCE (user context with 21 fine-grained
  scopes; see scopes/twitter-x-scopes.yml), and HTTP Basic auth on some
  enterprise endpoints. Credentials come from the Developer Console
  (console.x.com). The three OpenAPI securitySchemes below map to Bearer
  (BearerToken), OAuth 2.0 user context (OAuth2UserToken), and OAuth 1.0a
  (UserToken).
summary:
  types:
  - http
  - oauth2
  oauth2_flows:
  - authorizationCode
schemes:
- name: BearerToken
  type: http
  scheme: bearer
  sources:
  - openapi/twitter-x-x-api-v2-openapi.json
- name: OAuth2UserToken
  type: oauth2
  flows:
  - flow: authorizationCode
    authorizationUrl: https://api.x.com/2/oauth2/authorize
    tokenUrl: https://api.x.com/2/oauth2/token
    scopes: 21
  sources:
  - openapi/twitter-x-x-api-v2-openapi.json
- name: UserToken
  type: http
  scheme: OAuth
  sources:
  - openapi/twitter-x-x-api-v2-openapi.json

Work with this as data

Every security artifact here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for security posture

4 MCP tools reach this
  • find_securityBrowse and filter every security artifact in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This security artifact
curl "https://apis.io/api/v1/security/twitter-x-authentication"
All security posture
curl "https://apis.io/api/v1/security?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.