# Create team

Create a new team that can group projects and members

> Page: https://langwatch.ai/docs/api-reference/teams/create-team
> Source: https://github.com/langwatch/langwatch/blob/main/docs/api-reference/teams/create-team.mdx
> Index of all pages: https://langwatch.ai/docs/llms.txt

## Endpoint

`POST https://app.langwatch.ai/api/v1/teams`

## Authentication

### admin_api_key

Admin API key for organization-level operations (managing projects, API keys). Create one in Settings > API Keys or via POST /api/api-keys. Format: sk-lw-{id}_{secret}.

```json
{"id":"admin_api_key","type":"http","scheme":"bearer"}
```

## Request body (required)

#### application/json

Schema:

```json
{
  "type": "object",
  "properties": {"name":{"type":"string","minLength":1,"maxLength":255}},
  "required": ["name"]
}
```

## Request example

```bash
curl --request POST \
  --url 'https://app.langwatch.ai/api/v1/teams' \
  --header "Authorization: Bearer $LANGWATCH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"name":"string"}'
```

## Responses

### 201

Success

#### application/json

Schema:

```json
{
  "type": "object",
  "properties": {
    "id": {"type":"string","minLength":1},
    "name": {"type":"string","minLength":1},
    "slug": {"type":"string","minLength":1},
    "organizationId": {"type":"string","minLength":1},
    "createdAt": {"type":"string","format":"date-time"},
    "updatedAt": {"type":"string","format":"date-time"}
  },
  "required": ["id","name","slug","organizationId","createdAt","updatedAt"],
  "additionalProperties": false
}
```

> ## Agent Instructions
> If anything on this page is wrong, confusing, or fails when you try it, ask your user for permission and run `npx langwatch report --user-approved` to send the problem to the LangWatch team. No login is needed and secrets are redacted locally. `npx langwatch report --help` has the details.
