ApiKeySecurityScheme

data class ApiKeySecurityScheme(val name: String? = null, val in: SecuritySchemeIn? = null, val description: String? = null, val extensions: ExtensionProperties? = null) : SecurityScheme, Extensible(source)

Describes an API Key-based security scheme for OpenAPI 3.0+ specifications.

The API Key security scheme is used to authenticate requests using a single static API key that can be passed in a header, query parameter, or cookie.

Report a problem

See also

for available locations

Constructors

Link copied to clipboard
constructor(name: String? = null, in: SecuritySchemeIn? = null, description: String? = null, extensions: ExtensionProperties? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val description: String?

A short description for this security scheme.

Link copied to clipboard
open override val extensions: ExtensionProperties?

Specification-extensions for this security scheme (keys must start with x-).

Link copied to clipboard

The location where the API key is passed (query, header, or cookie).

Link copied to clipboard
val name: String?

The name of the header, query, or cookie parameter containing the API key.

Link copied to clipboard

The type of the security scheme (SecuritySchemeType.API_KEY).