---
title: "Create a team"
method: POST
path: "/teams"
---

# Create a team

`POST /teams`

## Request

- Base URL: `https://public-api.leexi.ai/v1`
- URL: `https://public-api.leexi.ai/v1/teams`
- Auth: API key in header `Authorization`

Create a team in your workspace. The team inherits your company settings and gets the default email templates.

## Request body

- object
  - `active` boolean: Defaults to `true` on creation. A team can only be deactivated once it has no active users.
  - `name` string, required: The team name. It must be unique within your workspace.

## Response `200`

200

- object
  - `data` object
    - `active` boolean
    - `created_at` string
    - `name` string
    - `updated_at` string
    - `uuid` string
  - `message` string
  - `success` boolean

## Other responses

- `400`: 400
- `403`: 403
- `409`: 409

---

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