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

# Create a team

`POST /teams`

## Request

- Base URL: `https://api.atako.ai`
- URL: `https://api.atako.ai/teams`
- Auth: HTTP bearer

Company-admin only (or no company, for a personal team).

## Request body

- object
  - `name` string, required
  - `parentId` string, uuid, nullable

## Response `201`

- Team
  - `id` string, uuid, required
  - `clientId` string, uuid, required
  - `companyId` string, uuid, nullable
  - `parentId` string, uuid, nullable
  - `name` string, required
  - `positions` TeamPosition[], required
    - `id` string, uuid, required
    - `teamId` string, uuid, required
    - `title` string, required
    - `parentId` string, uuid, nullable
    - `agentId` string, uuid, nullable
    - `userId` string, uuid, nullable
    - `agentInfo` object, nullable
      - `id` string, uuid
      - `name` string
      - `image` string
    - `memberInfo` object, nullable
      - `userId` string, uuid
      - `name` string
      - `email` string
      - `photo` string, nullable
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time
  - `liveAgentCount` integer, required
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `400`: Validation error / TEAM_CROSS_COMPANY
- `401`: Missing, malformed, or invalid bearer token / API key, or revoked session (SESSION_REVOKED).
- `403`: The caller does not have the required role/permission.
- `404`: parentId not found

---

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