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

Extends

Type Parameters

Type Parameter
TLocation extends ApiKeyLocation
TName extends string

Properties

PropertyModifierTypeDescriptionInherited from
description?publicstringOptional description.HttpAuthBase.description
idpublicstringId of the authentication scheme.HttpAuthBase.id
inpublicTLocation--
modelreadonlyModelModel that defined the authenticationHttpAuthBase.model
namepublicTName--
typepublic"apiKey"--