API call to download table as CSV?

Is there a way to create a local backup of all documents/tables via API?

Thinking of just writing some functions to download data for each table and construct the CSV files myself.

Else an API call that would return a backup/CSVs of everything would be good.

1 Like

See API reference - Grist Help Center

/docs/{docId}/download to download the full document as a .grist (sqlite) file, or add /csv?tableId=... or /xlsx for other formats.

3 Likes

cool thanks :kissing_heart:
Is there a way to do the same,
but ā€œimporting/uploadingā€ a grist/json/csv file like on the web interface via the API ?

image