PyPI · Authentication Profile

Pypi Authentication

Authentication

PyPI secures its APIs with http across 1 declared security scheme, as derived from its OpenAPI definitions.

Developer ToolsOpen SourcePackage ManagementPackagesPython
Methods: http Schemes: 1 OAuth flows: API key in:

Security Schemes

basicAuth http
scheme: basic

Source

Authentication Profile

Raw ↑
generated: '2026-07-11'
method: derived
source: openapi/pypi-upload-api-openapi.yml
summary:
  types:
  - http
schemes:
- name: basicAuth
  type: http
  scheme: basic
  description: HTTP Basic Authentication using __token__ as the username and a PyPI API token
    as the password. Trusted Publishers receive short-lived tokens through OpenID Connect that
    are used in the same manner.
  sources:
  - openapi/pypi-upload-api-openapi.yml