Downloading Monday DOC assets through API

Hello there,

We need to download a document we’ve uploaded to a Board using API, but couldn’t find any reference to how accomplish that.

When I retrieve the results, I get this data in JSON format:
[value] => {“files”:[{“name”:“monday Doc”,“fileId”:“xxx”,“isImage”:“false”,“fileType”:“MONDAY_DOC”,“objectId”:2335538956,“createdAt”:1645646169725,“createdBy”:“22375823”,“linkToFile”:“https//xxx.monday.com/docs/2335538956”}]}

(I’ve changed some of the data above for privacy.)

Is there a way to initiate the download of the Word document when accessing https//xxx.monday.com/docs/2335538956 ? Or perhaps a way to retrieve a temporary public download URL the same way you have with picture assets?

Please advise.

Hello @gabic and welcome to the community!

I hope you like it here :muscle:

What response do you get if you use your playground to run this query for the item that has the Word file in it?

{
  items(ids: 12345678) {
    assets {
      public_url
      id
      name
    }
  }
}

Looking forward to hearing from you!

Cheers,
Matias

I get an empty array:

{
  "data": {
    "items": []
  },
  "account_id": 9024451
}

I should mention it’s not a Word doc, but Workdoc (MONDAY_DOC) type of file.

Hello again @gabic !

Oh. I understand.

As of today there is no way of downloading the monday docs via API.

Let me know if you have any other questions :slightly_smiling_face:

Cheers,
Matias