Fix APIResponse implementation to use the correct return format from API