Hello, community!
I have a question regarding attachments on a Miro board.
I’m currently working with a board where I used the upload feature to add a PDF file. My goal is to retrieve the binary data of the PDF through the API, but the process seems a bit complex:
- First, I send a request to
https://api.miro.com/v2/boards/{board_id}/items
to retrieve the item ID for the PDF document. - Then, I use this ID in another call to
https://api.miro.com/v2/boards/{board_id}/documents/{item_id}
. - From this response, I extract the
"documentUrl"
, which looks something likehttps://api.miro.com/v2/boards/uXjVOfjkmAk=/resources/98765467890987654?redirect=false
. - I make a request to this
documentUrl
and get another"url"
property with a link to the PDF file, containing anExpires
timestamp and signature.
Finally, I use this last URL to make a request and download the actual binary file.
I'm wondering if there’s a more efficient way to directly fetch the binary without going through multiple steps. Any insights or suggestions would be greatly appreciated!
Thanks,
Vas