NuGet package publishing using API key

Have you enabled the realm as described in the help documentation? NuGet Repositories (link should go to the subsection)