> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a team

> Create a team as an organization admin.

> [!WARNING]
>
> This endpoint is experimental and may change or be removed without notice.


## OpenAPI

````yaml post /v1/teams
openapi: 3.1.0
info:
  description: REST API for management of Baseten resources
  title: Baseten management API
  version: 1.0.0
servers:
  - url: https://api.baseten.co
security:
  - BearerAuth: []
paths:
  /v1/teams:
    post:
      summary: Creates a team
      description: >-
        Creates a team. Requires an organization admin, who has access to the
        new team without being added to it. By default, an organization can have
        up to 25 teams; contact support to raise the limit. Creating a team past
        the limit returns 403. Creating a team isn't idempotent: if a request
        times out, look the team up by name before retrying.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTeamRequestV1'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamV1'
      x-codeSamples:
        - lang: bash
          source: |-
            curl --request POST \
            --url https://api.baseten.co/v1/teams \
            --header "Authorization: Bearer $BASETEN_API_KEY" \
            --data '{
              "name": "ml-platform",
              "icon": "\ud83d\ude80"
            }'
        - lang: python
          source: |-
            import requests
            import os
            API_KEY = os.environ.get("BASETEN_API_KEY", "<YOUR_API_KEY>")
            url = "https://api.baseten.co/v1/teams"

            headers = {"Authorization": f"Bearer {API_KEY}"}

            response = requests.request(
                "POST",
                url,
                headers=headers,
                json={'name': 'ml-platform', 'icon': '🚀'}
            )

            print(response.text)
components:
  schemas:
    CreateTeamRequestV1:
      additionalProperties: false
      description: Request to create a team.
      properties:
        name:
          description: Name of the team, unique among the organization's teams
          examples:
            - ml-platform
          maxLength: 255
          minLength: 1
          title: Name
          type: string
        icon:
          anyOf:
            - maxLength: 10
              minLength: 1
              type: string
            - type: 'null'
          default: null
          description: Emoji icon of the team, up to 10 characters
          examples:
            - 🚀
          title: Icon
      required:
        - name
      title: CreateTeamRequestV1
      type: object
    TeamV1:
      description: A team.
      properties:
        id:
          description: Unique identifier of the team
          title: Id
          type: string
        name:
          description: Name of the team
          title: Name
          type: string
        icon:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Emoji icon of the team, if any
          examples:
            - 🚀
          title: Icon
        default:
          type: boolean
          description: Whether this is the default team for the organization
          title: Default
        created_at:
          description: Time the team was created in ISO 8601 format
          format: date-time
          title: Created At
          type: string
      required:
        - id
        - name
        - default
        - created_at
      title: TeamV1
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send `Authorization: Bearer <api_key>`. The legacy `Authorization:
        Api-Key <api_key>` scheme is also accepted.

````