Security and Authentication

Authentication Overview

Speakeasy-created SDKs have authentication automatically configured based on the securitySchemes defined in the OpenAPI specification.

APIs authenticated with simple schemes such as Basic HTTP Auth, API keys and Bearer tokens work out of the box. For APIs using short-lived tokens (OAuth), additional configuration is required to simplify setup.

Authentication MechanismLanguage Support
HTTP Basic AuthenticationDocs
API Key [header, query]Docs
Bearer Token AuthenticationDocs
OAuthAll GA and some Beta Languages
mTLSusing hooks
Custom Security Schemesusing Speakeasy custom security schemes extension