Skip to content

[I] ApiKeyAuth

An API key is a token that a client provides when making API calls. The key can be sent in the query string:

GET /something?api_key=abcdef12345

or as a request header

GET /something HTTP/1.1
X-API-Key: abcdef12345

or as a cookie

GET /something HTTP/1.1
Cookie: X-API-KEY=abcdef12345
Type Parameter
TLocation extends ApiKeyLocation
TName extends string
PropertyModifierTypeDescriptionInherited from
description?publicstringDocumentation from the authentication model, when provided.HttpAuthBase.description
idpublicstringScheme identifier, initially derived from the model name or authentication type. Service authentication resolution disambiguates conflicting identifiers.HttpAuthBase.id
inpublicTLocationRequest location in which the client must send the key.-
modelreadonlyModelModel that defined the authenticationHttpAuthBase.model
namepublicTNameHeader, query parameter, or cookie name carrying the key.-
typepublic"apiKey"Identifies an API-key scheme rather than an Authorization-header scheme.-