api for outside server