---
title: "Get Deployment File Contents"
method: GET
path: "/v8/deployments/{id}/files/{fileId}"
tags: ["deployments"]
---

# Get Deployment File Contents

`GET /v8/deployments/{id}/files/{fileId}`

Allows to retrieve the content of a file by supplying the file identifier and the deployment unique identifier. The response body will contain a JSON response containing the contents of the file encoded as base64.

## Path parameters

- `id` string, required — The unique deployment identifier
- `fileId` string, required — The unique file identifier

## Query parameters

- `path` string — Path to the file to fetch (only for Git deployments)
- `teamId` string
- `slug` string

## Other responses

- `400` — One of the provided values in the request query is invalid.
- `401` — The request is not authorized.
- `403` — You do not have permission to access this resource.
- `404` — File not found Deployment not found
- `410` — Invalid API version.

---

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