Files

Files Info

GET
/files.info

Gets information about a file.

Authorization

slackAuth files:read
AuthorizationBearer <token>

In: header

Scope: files:read

Query Parameters

token?string

Authentication token. Requires scope: files:read

file?string

Specify a file by providing its ID.

count?string
page?string
limit?integer

The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached.

Formatint32
cursor?string

Parameter for pagination. File comments are paginated for a single file. Set cursor equal to the next_cursor attribute returned by the previous request's response_metadata. This parameter is optional, but pagination is mandatory: the default value simply fetches the first "page" of the collection of comments.

Header Parameters

Content-Type*"application/x-www-form-urlencoded"

Value in

  • "application/x-www-form-urlencoded"

Response Body

application/json

application/json

curl -X GET "https://example.com/files.info" \  -H "Content-Type: application/x-www-form-urlencoded"
{  "comments": [    null  ],  "content_html": "string",  "editor": "string",  "file": {    "channels": [      "string"    ],    "comments_count": 0,    "created": 0,    "date_delete": 0,    "display_as_bot": true,    "editable": true,    "editor": "string",    "external_id": "string",    "external_type": "string",    "external_url": "http://example.com",    "filetype": "string",    "groups": [      "string"    ],    "has_rich_preview": true,    "id": "string",    "image_exif_rotation": 0,    "ims": [      "string"    ],    "is_external": true,    "is_public": true,    "is_starred": true,    "is_tombstoned": true,    "last_editor": "string",    "mimetype": "string",    "mode": "string",    "name": "string",    "non_owner_editable": true,    "num_stars": 0,    "original_h": 0,    "original_w": 0,    "permalink": "http://example.com",    "permalink_public": "http://example.com",    "pinned_info": {},    "pinned_to": [      "string"    ],    "pretty_type": "string",    "preview": "string",    "public_url_shared": true,    "reactions": [      {        "count": 0,        "name": "string",        "users": [          "string"        ]      }    ],    "shares": {      "private": null,      "public": null    },    "size": 0,    "source_team": "string",    "state": "string",    "thumb_1024": "http://example.com",    "thumb_1024_h": 0,    "thumb_1024_w": 0,    "thumb_160": "http://example.com",    "thumb_360": "http://example.com",    "thumb_360_h": 0,    "thumb_360_w": 0,    "thumb_480": "http://example.com",    "thumb_480_h": 0,    "thumb_480_w": 0,    "thumb_64": "http://example.com",    "thumb_720": "http://example.com",    "thumb_720_h": 0,    "thumb_720_w": 0,    "thumb_80": "http://example.com",    "thumb_800": "http://example.com",    "thumb_800_h": 0,    "thumb_800_w": 0,    "thumb_960": "http://example.com",    "thumb_960_h": 0,    "thumb_960_w": 0,    "thumb_tiny": "string",    "timestamp": 0,    "title": "string",    "updated": 0,    "url_private": "http://example.com",    "url_private_download": "http://example.com",    "user": "string",    "user_team": "string",    "username": "string"  },  "ok": "True",  "paging": {    "count": 0,    "page": 0,    "pages": 0,    "per_page": 0,    "spill": 0,    "total": 0  },  "response_metadata": null}