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}

Request

  • Base URL
    https://api.smartsheet.com/2.0
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization code: https://app.smartsheet.com/b/authorize
      Token URL: https://api.smartsheet.com/2.0/token scopes: READ_SHEETS

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"
  }
}

Changes

No recorded changes to this operation across all 16 revisions of this API.