API boilerplate