I’m using the Coda API v1 to programmatically read through all the pages in a Coda doc and extract their contents. The Markdown/HTML export works fine for text, links, and other elements, but I’ve noticed that attachments directly added to a page (e.g., files dropped onto the canvas, not stored in a table column) are completely omitted.
I’ve seen examples showing how to fetch attachments when they live in a File/Image column in a table, but I haven’t found anything that covers page-level (canvas) attachments.
Is there any way through the API to retrieve those attachments, or even just their URLs?
Or is this simply a limitation of the export endpoints (i.e., certain elements will never appear in HTML/Markdown exports)?
I’d really appreciate either a creative workaround or an official confirmation that there’s no way around this with the current API. Thanks!
Hi @Leticia_Schettino - Unfortunately, we don’t have dedicated API endpoint for getting page-level file attachments. While they are omitted in the markdown export, you can get the URLs from the HTML export. The files will show up as img tags with the file URL in the src attribute: