---
title: "Fetch a file."
method: GET
path: "/file/fetch_file"
tags: ["Documents|File"]
---

# Fetch a file.

`GET /file/fetch_file`

This method can be used to download a specific file with the specified `id` parameter. If you want a list of
available files to download, use the `/file/fetch` endpoint. The `access_log` flag allows you to specify whether
access should be logged in the document access log.

## Query parameters

- `id` integer
- `externalId` string
- `log_access` boolean

## Response `200`

Success Response:

- ComponentHttpFoundationResponse — Represents a formless response. (HTML, Text, ...)

---

[API](https://skmtc.net/geocapture/apis/geocapture-api.md) · [All operations](https://skmtc.net/geocapture/apis/geocapture-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geocapture/geocapture-api/versions/15839b24c497/schema)
