fix(api-server): if has callback, call