Is there a API version of the export conversation button?

I would like to use the API to periodically export my conversations to email or similar as a backup of sorts. Much easier to look through past conversations this way and Archive them and return for future use or maybe stream a backup to cloud storage or something similar.

Not that I’m aware of but there is an export button. The API is not connected to ChatGPT and doesn’t store historical data