api: add task, res.send as callback