If you want your conversation history I think we could figure something out with headless browser automation. I would be hesitant to use their wire protocols directly.
Edit: perhaps you can just ask nicely?
https://help.openai.com/en/articles/7260999-how-do-i-export-...