Grist Document download options in the API

When you download a Grist document in the GUI you now get options to download the document with history, without history and just the structure:

image

Can that functionality be added to the API as maybe different calls variations of " Content of document, as an Sqlite file" like “Content of document, as an Sqlite file - no history” and “Content of document, as an Sqlite file - structure only”?

Actually, this functionality does exist! But as it was only added recently, it is not yet in the documentation. The endpoint is this one: https://support.getgrist.com/api/#tag/docs/operation/downloadDoc.

Two new URL parameters that aren’t documented yet are:

  • nohistory=true – remove document history;
  • template=true – remove document data and history, only keep the structure.
3 Likes