---
title: "Get file information"
method: GET
path: "/files/{id}"
tags: ["Files"]
---

# Get file information

`GET /files/{id}`

## Request

- Base URL: `https://api.toriihq.com/v1.0`
- URL: `https://api.toriihq.com/v1.0/files/{id}`
- Auth: API key in header `Authorization`

Use the following code snippet to get the information of a file that was uploaded to Torii

`curl -H "Authorization: Bearer API_KEY" "https://api.toriihq.com/v1.0/files/{FILE_ID}"`

* * *

`curl -H "Authorization: Bearer API_KEY" "https://api.toriihq.com/v1.0/files/1000"`

*   Rate limit: 600 requests per minute

## Path parameters

- `id` integer, required

## Query parameters

- `type` 'attachment' | 'expenseReport' | 'customIntegrationData' | 'plugin' | 'chatAttachment' | 'aiChatFile'

## Response `200`

File Entity

- FileEntity: File Entity
  - `file` File
    - `id` integer: Unique file identifier
    - `type` 'attachment' | 'expenseReport' | 'customIntegrationData' | 'plugin' | 'chatAttachment' | 'aiChatFile': File type
    - `fileName` string
    - `creationTime` string, date-time: Creation time
    - `uploadedBy` integer: Unique user identifier

---

[API](https://skmtc.dev/toriihq/apis/torii-api-documentation.md) - [All operations](https://skmtc.dev/toriihq/apis/torii-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/toriihq/apis/torii-api-documentation/revisions/15fd1512591b?raw)
