Renamed 'username' to 'api_key' for authentication purposes