To generate the API key on the Web GUI - https://<MC-IP>:8082, please navigate to "Administration > Users > Choose the user > Edit User"