---
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}`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v8/deployments/{id}/files/{fileId}`
- Auth: HTTP bearer

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.

## Changes

- **2025-10-09** `50caddad4ae7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v8/deployments/:id/files/:fileId/get.md)

---

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