Web App / API. In the Sign-on URL field, enter the FQDN or IP address that your Portainer instance listens on. Then click Create.
login. Set the Duration to
never expiresand then click Save. The key will then be generated for you. Use this key as the Application key in the respective field in Portainer.