Add a previewSession helper in the Api object