How to Create API Keys
How to Create API Keys in the API Portal
Introduction
Key authentication for APIs is the default method in Traefik Hub to authenticate and authorize access to APIs.
For more information about how to set up API keys, please refer to the Key authentication documentation.
Set Up Keys
In Traefik Hub, you configure API keys for authentication through API Portals.
info
The tokens are tied to the user. If you add a key on one Portal, it will appear on other Portals, even on other agents.
First log into an API Portal and select Settings in the left bottom corner.
https://dev.example.com/apis/ticket-api@apps
Select Create token in the right top corner, enter a name for the token, and select Create.
https://dev.example.com/settings
https://dev.example.com/settings
In the next step, save the token and after saving, select Ok, got it.
https://dev.example.com/settings
Your new key is created and displayed in the overview page.
https://dev.example.com/settings
Related Content
- Learn how to use API keys in the API Portal to authenticate and test APIs.