API Key Auth
API Key authentication requires you to send an API key with your request. You can do this in two ways:
Authentication Options
API Key in Header
Your API key will be added to an HTTP Header like this:
curl -X GET "https://api.example.com/data" \
-H "Authorization: Bearer YOUR_API_KEY"To set this up:
-
Select API Key from the Auth Config dropdown.
-
Choose Header Auth as the Auth Type.
-
Fill in these fields:
Field Name Field Value Header Auth Key The HTTP Header name. Defaults to AuthorizationHeader Auth Value Pattern A "% string" format string. Defaults to Bearer %sAPI Key The API key inserted over %s. (YOUR_API_KEYabove)
API Key in Query Parameter
Your API key will be added as an HTTP query parameter like this:
curl -X GET "https://api.example.com/data?API_Key=YOUR_API_KEY"To set this up:
-
Select API Key from the Auth Config dropdown.
-
Choose Param Auth as the Auth Type.
-
Fill in these fields:
Field Name Field Value Param Auth Param Name The query parameter name associated with your API key. ( API_Keyabove)API Key The actual API key value itself. ( YOUR_API_KEYabove)
Updated 15 days ago
