Web api for the segmenter