Vercel Deployments icon

Vercel Deployments

Manage Vercel deployments via the Vercel REST API

Get Deployment File

AI-generated

Summary

Fetches the contents of a single file from a Vercel deployment by calling GET /v6/deployments/{id}/files/{fileId} on the Vercel REST API.

Inputs

  • deploymentIdOrUrl (required) — The deployment ID or URL. It is URL-encoded and placed in the request path.
  • fileId (required) — The ID of the file to retrieve, taken from the output of the List Deployment Files operation. It is URL-encoded and placed in the request path.

Output shape

One output item per input item, with the parsed Vercel API response in json. The item is paired to its input item.

The request is sent as JSON and authenticated with the Vercel API credential's bearer token. The credential's team ID is added as a teamId query parameter when set. The source also reads a teamIdOverride parameter, which is not declared in this node's properties, so it defaults to empty. The exact response shape, such as whether file contents arrive as base64, is whatever the API returns and is not transformed. With Continue On Fail enabled, a failed item returns { error: message } instead of stopping the workflow.

Examples

Example 1: Read a deployed file after listing a deployment's files

Run List Deployment Files first. Then set Deployment ID or URL to the same deployment and File ID to ={{ $json.uid }} from the listing output, or whichever ID field the listing returns.

Example 2: Inspect a file in a specific deployment by URL

Set Deployment ID or URL to my-app-abc123.vercel.app and File ID to a known file ID.

Links

Discussion