Since we're going to migrate all actions (also queries that now are implemented in the api handlers) there
Simplify api to accept both ids or names in the same endpoint