---
title: "Check file is on storage"
method: POST
path: "/v1/files/storages/{storage_id}/"
---

# Check file is on storage

`POST /v1/files/storages/{storage_id}/`

## Request

- Base URL: `https://app.iconik.io/API/files`
- URL: `https://app.iconik.io/API/files/v1/files/storages/{storage_id}/`
- Auth: none declared. Required headers: `App-ID`, `Auth-Token`
- TypeScript: <https://skmtc.dev/iconik/apis/iconik-files/docs/v1/files/storages/:storage_id/post.ts> (a function with typed inputs; its response is checked against the schema)

Required roles:
 - can_read_files

## Path parameters

- `storage_id` string, required

## Query parameters

- `get_file_size` boolean

## Headers

- `App-ID` string, required
- `Auth-Token` string, required

## Request body

- FileExistenceCheckSchema
  - `directory_path` string, required
  - `file_name` string, required
  - `file_type` 'FILE' | 'DIRECTORY' | 'SYMLINK' | 'SEQUENCE'
  - `template` string
  - `template_engine` string

## Response `200`

File exists

## Other responses

- `400`: Bad request
- `401`: Token is invalid
- `403`: Access denied for share users
- `404`: File doesn't exist
- `default`: Error response

---

[API](https://skmtc.dev/iconik/apis/iconik-files.md) - [All operations](https://skmtc.dev/iconik/apis/iconik-files/llms.txt) - [OpenAPI document](https://skmtc.dev/iconik/apis/iconik-files/revisions/ed57d13791a2?raw)
