Payload Database

Hello everyone,
I’ve already installed all the chirpstack packages and everything is working great. I installed the network server, the app server, the lora gateway bridge, the Mqtt broker and also two databases (for network server and for the app server).
I connected to the web interface and it works well too. I see my device and the live data and all the parameters.
The thing is, I will not be able to be connected to my server all the time. Reading I saw that all the payload information is kept in the database. So my question is, how can I download that information everytime i connect to the server?
I beg your pardon if it is a silly question, but I am brand new in these topics.
Thank you in advance.
All the best

There is REST api for Chirpstack Application v3.