POST
/
v1
/
teams
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",
  });

  // Handle the result
  console.log(result);
}

run();
{
  "id": "team_nLlpyC6RE1qxqglFKbrMxlud",
  "slug": "<string>",
  "billing": {}
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json
slug
string
required

The desired slug for the Team

Maximum length: 48
Example:

"a-random-team"

name
string

The desired name for the Team. It will be generated from the provided slug if nothing is provided

Maximum length: 256
Example:

"A Random Team"

attribution
object

Attribution information for the session or current page

Response

200
application/json

The team was created successfully

id
string
required

Id of the created team

Example:

"team_nLlpyC6RE1qxqglFKbrMxlud"

slug
string
required
billing
object
required

IMPORTANT: If extending Billing, particularly with optional fields, make sure you also update sync-orb-subscription-to-owner.ts to handle the items when the object is recreated.