api: plug implementation into the API module