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

# Download file

<p>Use the following code snippet to download a file that was uploaded to Torii</p>
        <code class="hljs">curl -L -H "Authorization: Bearer API_KEY" -o {OUTPUT_FILE_NAME} "https://api.toriihq.com/v1.0/files/{FILE_ID}/download"</code>
        <hr />
        <code class="hljs">curl -L -H "Authorization: Bearer API_KEY" -o downloaded_file.json "https://api.toriihq.com/v1.0/files/1000/download"</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"
      }
    }
  },
  "paths": {
    "/files/{id}/download": {
      "get": {
        "summary": "Download file",
        "operationId": "getFilesIdDownload",
        "description": "<p>Use the following code snippet to download a file that was uploaded to Torii</p>\n        <code class=\"hljs\">curl -L -H \"Authorization: Bearer API_KEY\" -o {OUTPUT_FILE_NAME} \"https://api.toriihq.com/v1.0/files/{FILE_ID}/download\"</code>\n        <hr />\n        <code class=\"hljs\">curl -L -H \"Authorization: Bearer API_KEY\" -o downloaded_file.json \"https://api.toriihq.com/v1.0/files/1000/download\"</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
          }
        ],
        "tags": [
          "Files"
        ],
        "responses": {
          "302": {
            "description": "Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
```