---
title: "Create a team"
method: POST
path: "/api/v2/orgs/{orgId}/teams"
tags: ["Teams"]
---

# Create a team

`POST /api/v2/orgs/{orgId}/teams`

## Request

- Base URL: `https://davinci-app.com`
- URL: `https://davinci-app.com/api/v2/orgs/{orgId}/teams`
- Auth: HTTP bearer

Creates a team, makes the caller its owner, and seeds `Not started`,
`In progress`, and `Done` workflow statuses.

## Headers

- `Idempotency-Key` string

## Request body

- CreateTeamRequest
  - `name` string, required: Sanitized by the server to a resource name of at most 255 characters.
  - `description` string, nullable
  - `visibility` 'private' | 'internal'

## Response `201`

Team created.

- TeamResponse
  - `team` AgileTeam, required
    - `id` string, uuid, required
    - `name` string, required
    - `description` string, nullable, required
    - `status` string, required: Team lifecycle status; `active` is the database default.
    - `created_at` string, date-time, nullable, required
    - `updated_at` string, date-time, nullable, required
    - `organization_id` string, uuid, required
    - `visibility` 'private' | 'internal', required

## Other responses

- `400`: Malformed request parameters or body. Agile requests may return `INVALID_PAGINATION` or `INVALID_IDEMPOTENCY_KEY`.
- `401`: No credential was supplied, or the supplied credential is malformed, expired, or revoked. A credential that is present but unusable is never downgraded to an anonymous request.
- `403`: Authenticated but not authorized. Either the acting user lacks the required resource permission, the key's scope ceiling excludes it, or the endpoint rejects this credential type (`CREDENTIAL_NOT_PERMITTED`).
- `404`: The resource does not exist in the parent named by the path, or is hidden from the caller. Absence and privacy denial are deliberately indistinguishable so project, organization, and private-team existence cannot be probed.
- `409`: The resource's current state no longer permits this operation, or a unique name, hierarchy, dependency, or lifecycle invariant would be violated. Examples include an active sprint that must be completed first, a duplicate card-tag name (`TAG_NAME_CONFLICT`), or a dependency cycle. Idempotent creates may return `IDEMPOTENCY_KEY_REUSED` or `IDEMPOTENCY_REQUEST_IN_PROGRESS`; the latter includes `Retry-After`.
- `429`: Request rate exceeded, either globally or for this key.
- `500`: Unexpected server error.
- `503`: Idempotency protection is temporarily unavailable. Error code is `IDEMPOTENCY_UNAVAILABLE`; the response includes `Retry-After`.

## Changes

- **2026-09-15** (v2) `67c8b8616dbb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/celedon-solutions/apis/davinci-public-api/changes/api/v2/orgs/:orgId/teams/post.md)

---

[API](https://skmtc.dev/celedon-solutions/apis/davinci-public-api.md) - [All operations](https://skmtc.dev/celedon-solutions/apis/davinci-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/celedon-solutions/apis/davinci-public-api/revisions/279218ca2e8d?raw)
