First API draft for session management.