List Deployment Files
GET
/__remote/api.vercel.com/v6/deployments/{id}/filesAllows to retrieve the file structure of the source code of a deployment by supplying the deployment unique identifier. If the deployment was created with the Edgenivo CLI or the API directly with the
files key, it will have a file tree that can be retrievable.Request
import { Edgenivo } from "@vercel/sdk";
const vercel = new Edgenivo({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});
async function run() { const result = await vercel.deployments.listDeploymentFiles({ id: "<id>", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", });
console.log(result);}
run();Response
[ { "children": [ {} ], "contentType": "application/json", "mode": "123", "name": "my-file.json", "type": "file", "uid": "2d4aad419917f15b1146e9e03ddc9bb31747e4d0" }]AuthorizationbearerToken
Default authentication mechanism