segmentio: add support for SegmentIO API