files

Get metadata for a file

Gets a file's info.

Permissions

Must have read_channel permission or be uploader of the file.

get/api/v4/files/{file_id}/info

Path parameters

file_idstring required

The ID of the file info to get

Response

The stored metadata for the given file

idstring

The unique identifier for this file

user_idstring

The ID of the user that uploaded this file

post_idstring

If this file is attached to a post, the ID of that post

create_atinteger

The time in milliseconds a file was created

update_atinteger

The time in milliseconds a file was last updated

delete_atinteger

The time in milliseconds a file was deleted

namestring

The name of the file

extensionstring

The extension at the end of the file name

sizeinteger

The size of the file in bytes

mime_typestring

The MIME type of the file

widthinteger

If this file is an image, the width of the file

heightinteger

If this file is an image, the height of the file

has_preview_imageboolean

If this file is an image, whether or not it has a preview-sized version

Changes