Uploading Files to Cards via API
When you are creating cards through the API, to include files or images you need to make a separate API call for each file. Once a file is uploaded then you can reference it in the card's HTML.
To upload a file to Guru, make a POST call to https://api.getguru.com/api/v1/attachments/upload Include the file as a parameter called file and upload it as multipart/form-data.
The response looks like this:
{"mimeType" : "image/png","link" : "https://content.api.getguru.com/files/view/21641073-b2d2-4955-a9dc-44fb8cfb25f4","filestackKey" : "014dc5f6-9488-43fe-a892-206d276a7a9c/79783795-0b4b-4414-b931-9b949f718d08-image.png","attachmentId" : "21641073-b2d2-4955-a9dc-44fb8cfb25f4","filename" : "image.png","size" : 16332}
The link value there is the attachment's URL. When creating a card, you can reference this attachment URL in the card's HTML to make the card link to the file, show it as an image, or embed it in an iframe.