PydanticAI · Authentication Profile

Pydantic Ai Authentication

Authentication

PydanticAI secures its APIs with oauth2 across 1 declared security scheme, as derived from its OpenAPI definitions. OAuth 2.0 is offered via the authorizationCode flow(s).

AIAgentsPythonLLMType SafetyStructured OutputsDependency InjectionOpenAIAnthropicGeminiObservabilityFramework
Methods: oauth2 Schemes: 1 OAuth flows: authorizationCode API key in:

Security Schemes

OAuth2AuthorizationCodeBearer oauth2
· flows: authorizationCode

Source

Authentication Profile

Raw ↑
generated: '2026-07-11'
method: derived
source: openapi/pydantic-ai-logfire-openapi.yml
summary:
  types:
  - oauth2
  oauth2_flows:
  - authorizationCode
schemes:
- name: OAuth2AuthorizationCodeBearer
  type: oauth2
  flows:
  - flow: authorizationCode
    authorizationUrl: api/oauth/authorize
    tokenUrl: /api/oauth/token
    scopes: 38
  sources:
  - openapi/pydantic-ai-logfire-openapi.yml