The GetDocument() command returns a document attachment as a Base64 encoded binary string.

To get a list of documents attached to an asset, see GetAttachments().

  • Quota: 6
Table 1. Parameters
Parameter Type Max Length Required Description
apiToken string 20 Y Your API security token configured in Field View.
assetId integer Y The ID of the asset.
documentId integer Y The ID in <Attachment> object from GetAttachments, where <Type> = “Document.”
Table 2. Returns
Field Type Description
GetDocumentResponse GetDocumentResponse Returns a single document attachment object. Note that <Media> contains a Base64 encoded binary string. Document types can be determined by the returned <MimeType>.

Note: Dates are in UTC.

               <DocumentName>Asset C.docx</DocumentName>
               <DocumentFile>[BASE64 ENCODED BINARY STRING]</DocumentFile>