Saving data to pavlovia

How do I save data to the pavlovia databse (CSV format)? I’m not using lab.js or psychopy. The experiment is written in vanilla js and html.
I can’t find any API calls that would save files. From my understanding, lab.js and psychopy do it automatically. But what if I’m not using either!

Hey again (I’m the same guy as on the lab.js slack channel). Could you tell a bit about what you’ve tried to far to get it to work?