posts

Get file info for post

Gets a list of file information objects for the files attached to a post.

Permissions

Must have read_channel permission for the channel the post is in.

get/api/v4/posts/{post_id}/files/info

Path parameters

post_idstring required

ID of the post

Query parameters

include_deletedboolean

Defines if result should include deleted posts, must have 'manage_system' (admin) permission.

Response

File info retrieval successful

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

No recorded changes to this endpoint across all 1 revision of this API.