---
title: "Create an organization team"
method: POST
path: "/organizations/{organization}/teams"
tags: ["Organization teams"]
---

# Create an organization team

`POST /organizations/{organization}/teams`

### Authorization
A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:

**Service Token Accesses**
 `write_teams`

**OAuth Scopes**

 | Resource | Scopes |
| :------- | :---------- |
| Organization | `write_organization` |

## Path parameters

- `organization` string, required

## Request body

- object
  - `name` string, required — The name of the team
  - `description` string — A description of the team's purpose

## Response `200`

Returns the created team

- object
  - `id` string, required — The ID of the team
  - `display_name` string, required — The display name of the team
  - `creator` object, required
    - `id` string, required — The ID of the actor
    - `display_name` string, required — The name of the actor
    - `avatar_url` string, required — The URL of the actor's avatar
  - `members` object[], required
    - `id` string, required — The ID of the user
    - `display_name` string, required — The display name of the user
    - `name` string, required — The name of the user
    - `email` string, required — The email of the user
    - `avatar_url` string, required — The URL source of the user's avatar
    - `created_at` string, required — When the user was created
    - `updated_at` string, required — When the user was last updated
    - `two_factor_auth_configured` boolean, required — Whether or not the user has configured two factor authentication
    - `default_organization` object, nullable
      - `id` string, required — The ID for the resource
      - `name` string, required — The name for the resource
      - `created_at` string, required — When the resource was created
      - `updated_at` string, required — When the resource was last updated
      - `deleted_at` string, nullable, required — When the resource was deleted, if deleted
    - `sso` boolean, nullable — Whether or not the user is managed by SSO.
    - `managed` boolean, nullable — Whether or not the user is managed by an authentication provider.
    - `directory_managed` boolean, nullable — Whether or not the user is managed by a SSO directory.
    - `email_verified` boolean, nullable — Whether or not the user is verified by email.
  - `databases` object[], required
    - `id` string, required — The ID of the database
    - `name` string, required — The name of the database
    - `url` string, required — The URL to the database API endpoint
    - `branches_url` string, required — The URL to retrieve this database's branches via the API
  - `analyst_databases` object[], required
    - `id` string, required — The ID of the database
    - `name` string, required — The name of the database
    - `url` string, required — The URL to the database API endpoint
    - `branches_url` string, required — The URL to retrieve this database's branches via the API
  - `name` string, required — The name of the team
  - `slug` string, required — The slug of the team
  - `created_at` string, required — When the team was created
  - `updated_at` string, required — When the team was last updated
  - `description` string, nullable, required — The description of the team
  - `managed` boolean, required — Whether the team is managed through SSO/directory services

## Other responses

- `400` — Bad Request - Invalid operation or parameters
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity - Validation errors or SSO-managed teams
- `500` — Internal Server Error

## Changes

- **2026-06-01** `72506953f367` — 12 breaking, 1 info
  - the response property `description` became nullable for the status `200`
  - the response property `members/items/default_organization` became nullable for the status `200`
  - the response property `members/items/default_organization/deleted_at` became nullable for the status `200`
  - the response property `members/items/directory_managed` became nullable for the status `200`
  - …9 more

[Change history](https://skmtc.dev/planetscale/apis/planetscale-api/changes/organizations/:organization/teams/post.md)

---

[API](https://skmtc.dev/planetscale/apis/planetscale-api.md) · [All operations](https://skmtc.dev/planetscale/apis/planetscale-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/planetscale/planetscale-api/revisions/6d28c038c4fd/schema)
