Slack · Schema
File
A Slack file object representing an uploaded file with its metadata and sharing information.
BotsChatCollaborationMessagingProductivityT1Team Communication
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Unique file identifier. |
| created | integer | Unix timestamp of when the file was created. |
| timestamp | integer | Unix timestamp. |
| name | string | The file name. |
| title | string | Title of the file. |
| mimetype | string | MIME type of the file. |
| filetype | string | Slack file type identifier (e.g., "png", "pdf", "snippet"). |
| pretty_type | string | Human-readable file type. |
| user | string | User ID of the user who uploaded the file. |
| user_team | string | Team ID of the user who uploaded the file. |
| editable | boolean | Whether the file content is editable. |
| size | integer | File size in bytes. |
| mode | string | File mode (e.g., "hosted", "external", "snippet", "post"). |
| is_external | boolean | Whether the file is externally hosted. |
| external_type | string | Type of external file. |
| is_public | boolean | Whether the file is public. |
| public_url_shared | boolean | |
| display_as_bot | boolean | |
| username | string | |
| url_private | string | URL to access the file. Requires authentication. |
| url_private_download | string | URL to download the file. Requires authentication. |
| permalink | string | Permalink URL for the file. |
| permalink_public | string | Public permalink URL for the file (if shared publicly). |
| channels | array | Array of channel IDs where the file is shared. |
| groups | array | Array of private channel IDs where the file is shared. |
| ims | array | Array of DM IDs where the file is shared. |
| shares | object | Sharing information broken down by type. |
| comments_count | integer | Number of comments on the file. |