Creating new session through API