---
title: "Create a new team"
method: POST
path: "/api/rest/v1/teams"
tags: ["Teams"]
---

# Create a new team

`POST /api/rest/v1/teams`

## Request

- Base URL: `https://app.componecat.ai`
- URL: `https://app.componecat.ai/api/rest/v1/teams`
- Auth: none required

## Request body

- CreateTeamRequest: Create team request body.
  - `name` string, required
  - `description` string, nullable
  - `memberIds` string[], nullable

## Response `201`

Created

- RestApiResponseOfTeamDetail: Standard REST API response envelope for a single resource.
  - `data` TeamDetail, required: Team detail view -- full fields for single-resource responses.
    - `id` string, uuid, required
    - `name` string, required
    - `description` string, nullable, required
    - `memberCount` union, required
      - integer
      - string, int32
    - `externalId` string, nullable, required: Identifier of the team in the external system that manages it (e.g. the Atlassian team id); null for teams created in the catalog.
    - `externalSource` string, nullable, required: The external system that manages the team (e.g. `Atlassian`); null for teams created in the catalog.
    - `ownedEntityCount` union, required
      - integer
      - string, int32
    - `organizationId` string, uuid, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `422`: Unprocessable Entity
- `429`: Too Many Requests

---

[API](https://skmtc.dev/componecat/apis/componecat-rest-api.md) · [All operations](https://skmtc.dev/componecat/apis/componecat-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/componecat/apis/componecat-rest-api/revisions/6c53d4984720?raw)
