---
title: "Create a New Team"
url: https://docs.sentry.io/api/teams/create-a-new-team/
---

# Create a New Team | Sentry Docs

POST /api/0/organizations/{organization\_id\_or\_slug}/teams/

Create a new team bound to an organization. Requires at least one of the `name` or `slug` body params to be set.

### Path Parameters

* `organization_id_or_slug` *(string)*

  REQUIRED

  The ID or slug of the organization the resource belongs to.

### Body Parameters

* `slug` *(string)*

  Uniquely identifies a team and is used for the interface. If not provided, it is automatically generated from the name.

* `name` *(string)*

  **`[DEPRECATED]`** The name for the team. If not provided, it is automatically generated from the slug

### Scopes

You need to [authenticate via bearer auth token.](https://docs.sentry.io/api/auth.md)

`<auth_token>` requires one of the following scopes:

* `org:admin`
* `org:write`
* `team:write`

```
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/teams/ \
 -H 'Authorization: Bearer <auth_token>' \
 -H 'Content-Type: application/json' \
 -d '{}'
```

RESPONSESCHEMA

```
Copied
{
  "id": "5151492858",
  "slug": "ancient-gabelers",
  "name": "Ancient Gabelers",
  "dateCreated": "2021-06-12T23:38:54.168307Z",
  "isMember": true,
  "teamRole": "admin",
  "flags": {
    "idp:provisioned": false
  },
  "access": [
    "project:write",
    "member:read",
    "event:write",
    "team:admin",
    "alerts:read",
    "project:releases",
    "alerts:write",
    "org:read",
    "team:read",
    "project:admin",
    "project:read",
    "org:integrations",
    "event:read",
    "event:admin",
    "team:write"
  ],
  "hasAccess": true,
  "isPending": false,
  "memberCount": 1,
  "avatar": {
    "avatarType": "letter_avatar",
    "avatarUuid": null,
    "avatarUrl": null
  }
}
```

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
