---
title: "Download file | Scarica file"
method: GET
path: "/courses/{courseId}/files/{fileId}"
tags: ["Courses"]
---

# Download file | Scarica file

`GET /courses/{courseId}/files/{fileId}`

## Request

- Base URL: `https://app.didattica.polito.it/api`
- URL: `https://app.didattica.polito.it/api/courses/{courseId}/files/{fileId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/polito/apis/polito-faculty-api/docs/courses/:courseId/files/:fileId/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `courseId` integer, required
- `fileId` string, required

## Response `200`

The request has succeeded.

- unknown

## Other responses

- `302`: Redirection
- `400`: The server could not understand the request due to invalid syntax.
- `404`: The server cannot find the requested resource.
- `500`: Server error

---

[API](https://skmtc.dev/polito/apis/polito-faculty-api.md) - [All operations](https://skmtc.dev/polito/apis/polito-faculty-api/llms.txt) - [OpenAPI document](https://skmtc.dev/polito/apis/polito-faculty-api/revisions/c29c33e75373?raw)
