Documentation Documentation

Move Keys Between Environments

Tyk currently does not have a facility to export a group of keys from one environment and reissue them in another and still be able to manage those keys from within the Dashboard.

However, it is possible to temporarily allow access to existing keys in a new environment, but it should be noted that these keys should eventually be expired and re-generated within the new environment.

In order to use a legacy key in a new environment, simply extract the key from the old environment using a GET /tyk/keys/{keyID} request and then POST that key to the Gateway REST API (not create) under /tyk/keys/{keyId}, this will insert the key into Tyk, and Tyk will respect that key, however it may not be visible in the Dashboard. This is called a custom key.