API keys mAPI reference
Complete reference documentation for the API keys resource.
API keys
#API keys are used to authenticate requests to the Knock API.
Endpoints
Exchange for API key
#Given an authenticated service token, exchanges it for a secret API key that can be used to make requests to the public API.
Endpoint
POST/v1/api_keys/exchange
Query parameters
environment
string
The environment slug. When omitted, the account's default environment is used.
Returns
ExchangeForApiKeyResponse
Returns an API key that can be used to make requests to the public API.
api_key
string
The secret API key exchanged from the service token.