The segment.io API methods