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