Better API (#117)

* new api

* Apply suggestions from code review

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>
3 jobs for master
in 11 minutes and 36 seconds, using 0 compute credits, and was queued for 2 seconds