X (Twitter) · Authentication Profile

Twitter Authentication

Authentication

X (Twitter) 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).

Social MediaMicrobloggingReal-Time DataStreamingAdvertisingContent
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-11'
method: derived
source: openapi/x-api-openapi.json
summary:
  types:
  - http
  - oauth2
  oauth2_flows:
  - authorizationCode
schemes:
- name: BearerToken
  type: http
  scheme: bearer
  sources:
  - openapi/x-api-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/x-api-openapi.json
- name: UserToken
  type: http
  scheme: OAuth
  sources:
  - openapi/x-api-openapi.json