api: fix deploy

I used "master" to keep things working, but I broke everything. Looks
like I'm stupid :-)

Related to #458.