Skip to main content
POST
/
v1
/
teams
createTeam
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>"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json
slug
string
required

The desired slug for the Team

Maximum string 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 string length: 256
Example:

"A Random Team"

attribution
object

Attribution information for the session or current page

Response

The team was created successfully

The team was created successfully

id
string
required

Id of the created team

Example:

"team_nLlpyC6RE1qxqglFKbrMxlud"

slug
string
required