File
A card referencing a file shared by a remote storage provider.
file renders a reference to a file, currently only source: "remote", a file registered by an
app through Slack’s files.remote APIs (e.g. a Google Drive or Dropbox document). Use it to show a
linked document Slack knows about without embedding its contents.
Fields
typestring
Always `file`.
stringexternal_idstring
The id the registering app assigned the file when it called `files.remote.add`.
stringsourcestring
The file's source. Slack currently only documents `"remote"`.
string"remote"block_id?string
A unique identifier, up to 255 characters.
stringExamples
Remote file reference
Outside a real Slack workspace, only the fields present in the JSON are available, so the card shows
the external_id in place of the file’s actual name. There’s no way to look up the real filename,
type icon, or thumbnail without calling back into the registering app.