Tyk v2.2 Documentation Components

HomeTyk v2.2 Documentation ComponentsMove tokens between environments

Move tokens between environments

Tyk currently does not have a facility to export a group of tokens from one environment and re-issue them in another and still be able to manage those tokens from within the dashboard.

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

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

Was this article helpful to you? Yes No