The most basic mode to configure an Application Auth Strategy for an API Product Version. Using this mode will allow developers to generate API keys that will authenticate their application requests. Once authenticated, an application will be granted access to any Product Version it is registered for that is configured for Key Auth.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/AppAuthStrategyConfigKeyAuth",
"title": "AppAuthStrategyConfigKeyAuth",
"description": "The most basic mode to configure an Application Auth Strategy for an API Product Version. \nUsing this mode will allow developers to generate API keys that will authenticate their application requests. \nOnce authenticated, an application will be granted access to any Product Version it is registered for that is configured for Key Auth.\n",
"type": "object",
"properties": {
"key_names": {
"description": "The names of the headers containing the API key. You can specify multiple header names.",
"type": "array",
"items": {
"type": "string",
"maxLength": 256
},
"maxItems": 10,
"minItems": 1
},
"ttl": {
"description": "Default maximum Time-To-Live for keys created under this strategy.",
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 1
},
"unit": {
"type": "string",
"enum": [
"days",
"weeks",
"years"
],
"x-speakeasy-unknown-values": "allow"
}
},
"required": [
"value",
"unit"
]
}
},
"additionalProperties": false
}
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.