v1

latestOpenAPI 3.0.32026-08-061874701.5 MB
attachments

Get attachment

Fetches a temporary URL that allows you to download an attachment. The urlExpiresInMillis attribute tells you how long the URL is valid.

get/sheets/{sheetId}/attachments/{attachmentId}

Response

SUCCESS

idnumber

Attachment ID.

parentIdnumber

The ID of the parent.

attachmentType'BOX_COM' | 'DROPBOX' | 'EGNYTE' | 'EVERNOTE' | 'FILE' | 'GOOGLE_DRIVE' | 'LINK' | 'ONEDRIVE' | 'TRELLO'

Attachment type. Note--Dropbox, Egnyte, and Evernote are not supported for Smartsheet.gov accounts.

attachmentSubType'DOCUMENT' | 'DRAWING' | 'FOLDER' | 'PDF' | 'PRESENTATION' | 'SPREADSHEET'

Attachment sub type. Note--Folder type is for EGNYTE values and the rest are GOOGLE_DRIVE values.

mimeTypestring

Attachment MIME type.

parentType'COMMENT' | 'PROOF' | 'ROW' | 'SHEET'

The type of object the attachment belongs to.

namestring

Attachment name.

sizeInKbnumber

The size of the file, if the attachmentType is FILE.

urlstring

Attachment temporary URL (files only).

urlExpiresInMillisnumber

Attachment temporary URL time to live (files only).

Example response

{
  "mimeType": "PNG",
  "createdBy": {
    "email": "jane.doe@smartsheet.com",
    "name": "Jane Doe"
  }
}