---
title: "Create a team in the organization this request is bound to."
method: POST
path: "/v1/orgs/teams"
tags: ["account"]
---

# Create a team in the organization this request is bound to.

`POST /v1/orgs/teams`

## Request

- Base URL: `https://api.kody.codes`
- URL: `https://api.kody.codes/v1/orgs/teams`
- Auth: HTTP bearer

Create a team in the organization this request is bound to. The slug is a handle unique inside the organization.

Org permission: `team:write`.

## Request body

- object
  - `slug` string, required
  - `name` string, required
  - `description` string

## Response `200`

Success.

- object
  - `team` object, required
    - `id` string, required
    - `slug` string, required
    - `name` string, required

## Other responses

- `400`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `401`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `403`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `404`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `409`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `413`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `429`: Too many requests (edge IP/token limit) or an entitlement / plan-cap limit. Wait at least `Retry-After` seconds before retrying.
- `500`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `503`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `default`: Error envelope `{ "error": { "code", "message", "details"? } }`.

---

[API](https://skmtc.dev/kody/apis/kody-api.md) · [All operations](https://skmtc.dev/kody/apis/kody-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kody/apis/kody-api/revisions/a020ecedb82b?raw)
