API update to add session and post