Change the way of obtaining @api

So it reflects all possible ways of getting credentials
that other submodules/subcommands use