Added function to create API key to the dashboard