---
title: "Get File"
method: GET
path: "/digital-banking/v1/files/{file_id}"
tags: ["Files"]
---

# Get File

`GET /digital-banking/v1/files/{file_id}`

## Path parameters

- `file_id` string, uuid, required

## Query parameters

- `account_id` union, required
  - string, uuid
  - string
- `id_type` 'INSTITUTION' — Type of the account id. Institution accounts ids are external ids and come from the institution.
- `response_type` 'presigned_url' | 'file'

## Response `200`

When response_type=file, the file is streamed back directly as raw bytes, with a Content-Type derived from the file (e.g. application/pdf or text/csv). Otherwise a JSON object containing a presigned_url is returned.

- FileResponse
  - `presigned_url` string, required

## Other responses

- `400` — Bad Request - Invalid input or validation error
- `401` — Unauthenticated - Invalid or missing authentication credentials
- `403` — Unauthorized - Insufficient permissions to access resource
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/modernfi/apis/endpoints.md) · [All operations](https://skmtc.net/modernfi/apis/endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modernfi/endpoints/revisions/d9c7bd6bd2f2/schema)
