Docs
/
/

API keys Management API reference

Complete reference documentation for the API keys resource.

API keys

#

API keys are used to authenticate requests to the Knock API.

Exchange for API key

#

Given an authenticated service token and an environment, will exchange the service token 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.

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.

New chat