---
updatedAt: 2026-05-27T05:24:21.000Z
agentTools:
  projectIndex: https://developers.toriihq.com/llms.txt
---

# Get file information

<p>Use the following code snippet to get the information of a file that was uploaded to Torii</p>
        <code class="hljs">curl -H "Authorization: Bearer API_KEY" "https://api.toriihq.com/v1.0/files/{FILE_ID}"</code>
        <hr />
        <code class="hljs">curl -H "Authorization: Bearer API_KEY" "https://api.toriihq.com/v1.0/files/1000"</code>
<p><ul><li>Rate limit: 600 requests per minute</li></ul></p>

# OpenAPI definition

```json
{
  "servers": [
    {
      "url": "https://api.toriihq.com/v1.0"
    }
  ],
  "info": {
    "title": "Torii API Documentation",
    "version": "v1.0",
    "description": "The Torii API provides an easy way to integrate your data in Torii with any external system. The API closely follows REST semantics, uses JSON to encode objects, and relies on standard HTTP codes to signal operation outcomes. Torii APIs consist of both proprietary and SCIM 2.0 APIs."
  },
  "x-readme": {
    "explorer-enabled": true
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Files",
      "description": "Following are the APIs to interact with files within Torii."
    }
  ],
  "openapi": "3.0.0",
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    },
    "schemas": {
      "Model49": {
        "type": "string",
        "description": "File type",
        "example": "expenseReport",
        "enum": [
          "attachment",
          "expenseReport",
          "customIntegrationData",
          "plugin",
          "chatAttachment",
          "aiChatFile"
        ]
      },
      "file": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique file identifier",
            "example": 1000,
            "minimum": 1
          },
          "type": {
            "$ref": "#/components/schemas/Model49"
          },
          "fileName": {
            "type": "string",
            "example": "test_file.xlsx"
          },
          "creationTime": {
            "type": "string",
            "format": "date-time",
            "description": "Creation time",
            "example": "2020-01-01T00:00:00.000Z"
          },
          "uploadedBy": {
            "type": "integer",
            "description": "Unique user identifier",
            "example": 1000,
            "minimum": 1
          }
        }
      },
      "FileEntity": {
        "type": "object",
        "description": "File Entity",
        "properties": {
          "file": {
            "$ref": "#/components/schemas/file"
          }
        }
      }
    }
  },
  "paths": {
    "/files/{id}": {
      "get": {
        "summary": "Get file information",
        "operationId": "getFilesId",
        "description": "<p>Use the following code snippet to get the information of a file that was uploaded to Torii</p>\n        <code class=\"hljs\">curl -H \"Authorization: Bearer API_KEY\" \"https://api.toriihq.com/v1.0/files/{FILE_ID}\"</code>\n        <hr />\n        <code class=\"hljs\">curl -H \"Authorization: Bearer API_KEY\" \"https://api.toriihq.com/v1.0/files/1000\"</code>\n<p><ul><li>Rate limit: 600 requests per minute</li></ul></p>",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "integer",
              "description": "Unique file identifier",
              "example": 1000,
              "minimum": 1
            },
            "description": "Unique file identifier",
            "required": true
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string",
              "description": "File type",
              "default": "expenseReport",
              "enum": [
                "attachment",
                "expenseReport",
                "customIntegrationData",
                "plugin",
                "chatAttachment",
                "aiChatFile"
              ]
            },
            "description": "File type"
          }
        ],
        "tags": [
          "Files"
        ],
        "responses": {
          "200": {
            "description": "File Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileEntity"
                }
              }
            }
          }
        }
      }
    }
  }
}
```