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