import { Vercel } from "@vercel/sdk";const vercel = new Vercel({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});async function run() { await vercel.deployments.getDeploymentFileContents({ id: "<id>", fileId: "<id>", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", });}run();
deployments
Get Deployment File Contents
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.
GET
/
v8
/
deployments
/
{id}
/
files
/
{fileId}
getDeploymentFileContents
Copy
Ask AI
import { Vercel } from "@vercel/sdk";const vercel = new Vercel({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});async function run() { await vercel.deployments.getDeploymentFileContents({ id: "<id>", fileId: "<id>", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", });}run();