---
title: "Create a team – Superbot API"
canonical_url: "https://superbot.gg/developers/teams/createTeam"
summary: "Create a team with the caller as its one owner. The owner’s Helper sets up the team key when it next syncs."
---

> Markdown of https://superbot.gg/developers/teams/createTeam. Site index: /llms.txt.

# Create a team

`POST /v1/teams`

Create a team with the caller as its one owner. The owner’s Helper sets up the team key when it next syncs.

- Operation id: `createTeam`
- Group: [Teams](https://superbot.gg/developers/teams.md)
- Auth: A caller key holding `teams:write` (`Authorization: Bearer sbc_…` or `x-api-key: sbc_…`), or a signed-in session.
- Scopes: `teams:write`

## Request body

`application/json`, required.

- `name` (string, required)

## Response 201

The new team.

`application/json`: Team.

- `id` (string, required)
- `object` (string, required): One of `team`.
- `name` (string, required)
- `role` (TeamRole, required): The caller's role in this team. One of `owner`, `admin`, `editor`, `member`.
- `member_count` (integer, required)
- `created_at` (string, required)
- `share_defaults` (object, required): What a new member pools by default, per kind.
  - `mcp` (boolean, required)
  - `rules` (boolean, required)
  - `skills` (boolean, required)
- `share_policy` (string, required): Who may add items to the pool. One of `members`, `editors`.
- `require_manual_confirm` (boolean, required)

## Errors

Every refusal carries `error`, `message`, `doc_url` and `request_id`; the gateway routes answer in the dialect you dialed.

| Status | Codes | When |
| --- | --- | --- |
| 400 | [`invalid_request`](https://superbot.gg/developers#errors-invalid_request) | The request is malformed or a parameter is invalid; `param` names the field. |
| 401 | [`unauthorized`](https://superbot.gg/developers#errors-unauthorized) | The bearer is missing, malformed or unknown. |
| 403 | [`insufficient_scope`](https://superbot.gg/developers#errors-insufficient_scope) | The key lacks a scope (insufficient_scope), is revoked, or may not call this route. |

## Examples

```sh
curl -sS -X POST "https://superbot.gg/v1/teams" \
  -H "Authorization: Bearer $SUPERBOT_API_KEY" \
  -H "content-type: application/json" \
  -d '{"name":"your-name"}'
```

```js
const res = await fetch(`https://superbot.gg/v1/teams`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.SUPERBOT_API_KEY}`,
    'content-type': 'application/json',
  },
  body: JSON.stringify({"name":"your-name"}),
});
console.log(res.status, await res.json());
```

```python
import os
import requests

res = requests.request(
    "POST",
    "https://superbot.gg/v1/teams",
    headers={
        "Authorization": f"Bearer {os.environ['SUPERBOT_API_KEY']}",
        "content-type": "application/json",
    },
    json={"name":"your-name"},
)
print(res.status_code, res.json())
```
