---
title: "Create Teams Api"
method: POST
path: "/api/v2/teams"
tags: ["Teams V2"]
---

# Create Teams Api

`POST /api/v2/teams`

## Request

- Base URL: `https://public-api.linearb.io`
- URL: `https://public-api.linearb.io/api/v2/teams`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/linearb/apis/linearb-api/docs/api/v2/teams/post.ts> (a function with typed inputs; its response is checked against the schema)

Teams V2 API endpoint performs a LinearB teams bulk creation.

## Request body

- TeamV2CreationModel[]
  - `name` string, required: Team name must be at least 3 characters long, start with a letter
  - `parent_team` string: Team parent name must be at least 3 characters long, start with a letter
  - `initials` string: Team initials must be 1 to 3 characters long and contain only letters or numbers.
  - `color` string: Team color must be a valid hex code in the format #RGB or #RRGGBB.

## Response `200`

Successful Response

## Other responses

- `202`: Successful Response
- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `405`: Method Not Allowed
- `409`: Conflict
- `422`: Validation Error
- `500`: Internal Server Error
- `504`: Gateway Timeout

---

[API](https://skmtc.dev/linearb/apis/linearb-api.md) - [All operations](https://skmtc.dev/linearb/apis/linearb-api/llms.txt) - [OpenAPI document](https://skmtc.dev/linearb/apis/linearb-api/revisions/3aea06710db6?raw)
