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

# Create a team

`POST /teams`

## Request

- Base URL: `https://dataops.nexla.io/nexla-api`
- URL: `https://dataops.nexla.io/nexla-api/teams`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nexla/apis/nexla-rest-api/docs/teams/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a team with the specified configuration and members.

## Request body

- TeamCreate
  - `name` string, required
  - `description` string
  - `members` TeamMemberRequestSchema[]
    - union
      - object
        - `id` integer: Unique ID of the user.
        - `admin` boolean: Reflects whether the user is an administrator of this team or not.
      - object
        - `email` string, email: Email ID of the user.
        - `admin` boolean: Reflects whether the user is an administrator of this team or not.

## Response `200`

Success

- Team
  - `id` integer
  - `name` string
  - `description` string
  - `owner` UserSimplified
    - `id` integer
    - `full_name` string
    - `email` string
    - `email_verified_at` string, date-time
  - `org` OrgSimplified
    - `id` integer
    - `name` string
    - `email_domain` string
    - `email` string
    - `client_identifier` string
    - `org_webhook_host` string
  - `member` boolean
  - `members` TeamMemberResponseSchema[]
    - `id` integer: Unique ID of the user.
    - `email` string, email: Email ID of the user.
    - `admin` boolean: Reflects whether the user is an administrator of this team or not.
  - `access_roles` string[]: This property reflects all the permissions the user/team/organization has to this resource. 1. `collaborator`: The user/team/organization can view the resource but not make any modifications to it. 2. `operator`: The user/team/organization can view the resource and can activate/pause it, but not make any other modifications to it. 3. `administrator`: The user/team/organization has complete administrative rights to this resource. 4. `owner`: This user created the resource and so has complete administrative rights to it.
  - `updated_at` string, date-time
  - `created_at` string, date-time
  - `tags` string[]

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

---

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