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

# Create a new team

`POST /v1/teams`

## Request

- Base URL: `https://api.telgea.com`
- URL: `https://api.telgea.com/v1/teams`
- Auth: API key in header `x-api-key`

Creates a new team in your organization. Teams help organize users into logical groups for billing, access control, and reporting.

After creating a team, you can assign users to it and associate it with billing entities for billing allocation.

## Headers

- `idempotency-key` string: A value unique to this request, of 1 to 255 printable ASCII characters — a UUID is the usual choice. Retry with the same key within 24 hours and you get the original response back, even if it was a failure, and nothing is done twice. Send a new key whenever you change the request. Keys are private to your API key and organisation.

## Request body

- CreateTeamBody
  - `name` string, required: Team name
  - `emoji` string: Emoji representing the team
  - `costCode` string: Cost center code applied to all users in this team
  - `userIds` string[]: Existing user IDs to add to the team on creation

## Response `200`

Team created successfully. Returns the created team object including the auto-generated team ID.

- CreateTeamResponse
  - `id` string, required: UUID of the created team.

## Other responses

- `400`: Request failed schema validation, or was refused by a business rule
- `401`: Missing or invalid API key in the X-API-Key header
- `403`: Insufficient permissions to create teams
- `404`: A user id in `userIds` is not in your organization
- `429`: The API key has used its request quota for the current window. `Retry-After` says how many seconds until it resets.
- `500`: Internal server error. Contact support if this persists.

---

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