---
title: "Get file info for post"
method: GET
path: "/api/v4/posts/{post_id}/files/info"
tags: ["posts"]
---

# Get file info for post

`GET /api/v4/posts/{post_id}/files/info`

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.

## Path parameters

- `post_id` string, required

## Query parameters

- `include_deleted` boolean

## Response `200`

File info retrieval successful

- 38cb7293FileInfo[]
  - `id` string — The unique identifier for this file
  - `user_id` string — The ID of the user that uploaded this file
  - `post_id` string — If this file is attached to a post, the ID of that post
  - `create_at` integer — The time in milliseconds a file was created
  - `update_at` integer — The time in milliseconds a file was last updated
  - `delete_at` integer — The time in milliseconds a file was deleted
  - `name` string — The name of the file
  - `extension` string — The extension at the end of the file name
  - `size` integer — The size of the file in bytes
  - `mime_type` string — The MIME type of the file
  - `width` integer — If this file is an image, the width of the file
  - `height` integer — If this file is an image, the height of the file
  - `has_preview_image` boolean — If this file is an image, whether or not it has a preview-sized version

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `401` — No access token provided
- `403` — Do not have appropriate permissions

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
