Typescript
import { Vercel } from "@vercel/sdk"; const vercel = new Vercel({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>", }); async function run() { const result = await vercel.teams.createTeam({ slug: "a-random-team", name: "A Random Team", }); console.log(result); } run();
{ "id": "team_nLlpyC6RE1qxqglFKbrMxlud", "slug": "<string>" }
Create a new Team under your account. You need to send a POST request with the desired Team slug, and optionally the Team name.
Default authentication mechanism
The team was created successfully