Creating a table in Google Doc from an Array of information

Thanks @Gregory the reverse order is a smart move! Could you share the blueprint of your scenario? I’m struggling to rebuild it.

I’m still stuck how to insert content via the API. @johnematias any advice or blueprints to look would be appreciated