How to export all our posts from message board?


I want to export all my posts to my computer in txt or json format. I have written so many things there (in 100s) that I would feel lost if they all get erased in future. Please give me a API endpoint or something using which we can export our posts.