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

# Create a team

`POST /v1/teams`

This endpoint allows you to create a team.

If you are using a personal access token, you need to have an access level superior or equal to `manager`.

If a personal access token is being used, the member is automatically added to the created team with permissions `can_manage` and `full_access`

## Request body

- object
  - `id` integer
  - `name` string, required
  - `description` string, nullable — team description.
  - `is_global` boolean
  - `gitguardian_url` string
  - `external_provider_id` string, nullable — ID of the external provider associated to the team.

## Response `201`

Team created

- object
  - `id` integer
  - `name` string
  - `description` string, nullable — team description.
  - `is_global` boolean
  - `gitguardian_url` string
  - `external_provider_id` string, nullable — ID of the external provider associated to the team.

## Other responses

- `400` — Invalid data
- `401` — Invalid API key
- `403` — Forbidden Call
- `409` — Data conflict
- `503` — API under maintenance

---

[API](https://skmtc.net/gitguardian/apis/gitguardian-api.md) · [All operations](https://skmtc.net/gitguardian/apis/gitguardian-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitguardian/gitguardian-api/revisions/511b067cdcb1/schema)
