1 min read
We’ve published a TypeScript-native SDK for working with the Vercel API.
npm i @vercel/sdk
This SDK includes:
Full type safety for accessing the Vercel REST API with Zod schemas
New documentation for every function, argument, and type
Better tree-shaking support with optional standalone functions
Intuitive error handling and detailed error messages
Configurable retry strategies (including backoffs)
import { Vercel } from '@vercel/sdk';
const vercel = new Vercel({ bearerToken: process.env.VERCEL_TOKEN,});
const result = await vercel.deployments.getDeployment({ idOrUrl: 'dpl_89qyp1cskzkLrVicDaZoDbjyHuDJ'});
This SDK can be used to automate every part of Vercel’s platform including:
Deployment automation and management
Project creation and configuration
Domain management
Team and user administration
Environment variable management
Logs and monitoring
Integration configuration