finish server api