Reference/Files
Files
The photos and documents on cards: uploading them, reading what Werk read in them, downloading and removing them.
Read
GETGet a documentOne document on a card: its state, Werk's summary and the values it read in it./projects/{projectId}/cards/{cardId}/documents/{documentId} GETSearch filesThe photos and documents on the cards of the key's person's projects, listed by filters or searched by words./files GETGet a card's fileOne photo or document on a card, with what Werk read in it./projects/{projectId}/cards/{cardId}/files/{fileId} GETRead a document's textThe text Werk read in a document, part by part./projects/{projectId}/cards/{cardId}/documents/{documentId}/pages GETDownload a fileThe file's bytes, at an address made by its download grant./files/{fileId}/download/{grant} GETList a card's documentsThe documents on a card, each with what Werk read in it./projects/{projectId}/cards/{cardId}/documents GETDownload a documentThe document's original file, as an attachment./projects/{projectId}/cards/{cardId}/documents/{documentId}/original GETGet an uploadThe bytes of a file the key's person uploaded, or one shown to them on a card or sent to them, in a project./assets/{assetId}
Create
POSTGet a download addressMakes an address that downloads one file of a card, valid an hour./projects/{projectId}/cards/{cardId}/files/{fileId}/download-grants POSTUpload a file directlyUploads one photo, document or voice recording as its bytes, for a card, a project, the key's person's photo or a report to use./assets POSTGet upload addressesMakes one upload address per file to add, valid an hour, each with the most bytes it takes./projects/{projectId}/upload-grants
Change
DELETERemove a card's photoTakes a photo off a card./projects/{projectId}/cards/{cardId}/photos/{photoId} DELETERemove a card's documentTakes a document off a card./projects/{projectId}/cards/{cardId}/documents/{documentId} POSTRead a document nowAsks Werk to read a document it did not read by itself./projects/{projectId}/cards/{cardId}/documents/{documentId}/read-now POSTAnswer a reading's costSays yes or no to the cost Werk asked before reading a long document./projects/{projectId}/cards/{cardId}/documents/{documentId}/consent PUTUpload a fileSends one file's bytes to the upload address its grant made./assets/{assetId}/upload/{grant}