---
title: create-or-add-team-to-organization
product: vercel
url: /docs/rest-api/organizations/create-or-add-team-to-organization
canonical_url: "https://vercel.com/docs/rest-api/organizations/create-or-add-team-to-organization"
last_updated: 2026-10-16
type: reference
prerequisites:
  []
related:
  - /docs/rest-api
summary: Learn about create-or-add-team-to-organization on Vercel.
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

# Create or Add Team to Organization

```http
POST /v1/organizations/{organizationId}/teams
```

Create a new team under an organization, or add an existing team. `mode: "create"` creates a brand-new child team from `slug` + `name` — a platform child by default, or an enterprise child (billed on the organization root's flex subscription) when `billingPlan: "enterprise"` is supplied. `mode: "link"` links an existing team identified by `teamId` or `slug`; the child's billing profile is derived from the target team's plan (enterprise team → enterprise child, else platform), or explicitly supplied. Both modes respond with the resulting organization-team link. This endpoint is in private beta. Contact your Vercel account team for access.

## Authentication

**bearerToken**: HTTP bearer

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `organizationId` | string | Yes | The ID of the organization to create or add a team under. |


## Request body

Required: No

Content-Type: `application/json`

```json
{
  "type": "object",
  "required": [
    "mode"
  ],
  "properties": {
    "mode": {
      "type": "string",
      "description": "Whether to create a new team under the organization (\\\"create\\\") or link an existing one (\\\"link\\\").",
      "enum": [
        "create",
        "link"
      ]
    },
    "teamId": {
      "type": "string",
      "description": "The ID of an existing team to add to the organization (link mode)."
    },
    "slug": {
      "type": "string",
      "description": "The slug of an existing team to link, or the slug for a new team to create."
    },
    "name": {
      "type": "string",
      "description": "The display name for a new team. Required in create mode; rejected in link mode."
    },
    "billingPlan": {
      "type": "string",
      "enum": [
        "enterprise",
        "platform"
      ]
    }
  },
  "oneOf": [
    {
      "required": [
        "mode",
        "slug",
        "name"
      ],
      "properties": {
        "mode": {
          "enum": [
            "create"
          ]
        },
        "name": {}
      }
    },
    {
      "required": [
        "mode",
        "teamId"
      ],
      "properties": {
        "mode": {
          "enum": [
            "link"
          ]
        }
      }
    },
    {
      "required": [
        "mode",
        "slug"
      ],
      "properties": {
        "mode": {
          "enum": [
            "link"
          ]
        }
      }
    }
  ]
}
```

## Example request

### TypeScript

```typescript
const response = await fetch('https://api.vercel.com/v1/organizations/organizationId/teams', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "mode": "create",
    "teamId": "example_id",
    "slug": "string",
    "name": "value",
    "billingPlan": "enterprise"
  }),
});

const data = await response.json();
console.log(data);
```

### Next.js

```typescript
'use server';

export async function callEndpoint() {
  const response = await fetch('https://api.vercel.com/v1/organizations/organizationId/teams', {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${process.env.VERCEL_ACCESS_TOKEN}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      "mode": "create",
      "teamId": "example_id",
      "slug": "string",
      "name": "value",
      "billingPlan": "enterprise"
    }),
    next: { revalidate: 3600 }
  });

  if (!response.ok) {
    throw new Error('Request failed');
  }

  return response.json();
}
```

### cURL

```bash
curl -X POST 'https://api.vercel.com/v1/organizations/organizationId/teams' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d "{
    \"mode\": \"create\",
    \"teamId\": \"example_id\",
    \"slug\": \"string\",
    \"name\": \"value\",
    \"billingPlan\": \"enterprise\"
  }"
```

## Example response

```json
{
  "billingPlan": "enterprise",
  "createdAt": "string",
  "organizationId": "example_id",
  "ssoMode": "organization",
  "teamId": "example_id",
  "updatedAt": "string"
}
```

## Responses

### 200: No description

Content-Type: `application/json`

```json
{
  "type": "object",
  "required": [
    "createdAt",
    "organizationId",
    "ssoMode",
    "teamId",
    "updatedAt"
  ],
  "properties": {
    "billingPlan": {
      "type": "string",
      "description": "The child team's billing profile within the organization. Optional: links created before this attribute existed have no stored value.",
      "enum": [
        "enterprise",
        "platform"
      ]
    },
    "createdAt": {
      "type": "string"
    },
    "organizationId": {
      "type": "string"
    },
    "ssoMode": {
      "type": "string",
      "enum": [
        "organization",
        "team"
      ]
    },
    "teamId": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    }
  }
}
```

### 400: One of the provided values in the request body is invalid.
One of the provided values in the request query is invalid.
The slug is already in use

### 401: The request is not authorized.

### 403: You do not have permission to access this resource.

### 404: No description

### 409: No description

### 410: No description

### 500: No description

---

## Related

- [organizations endpoints](/docs/rest-api#organizations)

- [REST API overview](/docs/rest-api)

- [OpenAPI spec](https://vercel.com/openapi.json) (machine-readable, all endpoints)

---

[View full sitemap](/docs/sitemap)
