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

# Add a user to a team



## OpenAPI

````yaml /partner-swagger.yml post /reseller/teams/{teamId}/users
openapi: 3.0.0
info:
  title: Clerk Reseller / Partner API
  description: API For usage by Clerk Resellers and Partners
  version: '1.0'
  contact: {}
servers:
  - url: https://partners.clerk.chat
    description: Production server
security: []
tags: []
paths:
  /reseller/teams/{teamId}/users:
    post:
      tags:
        - reseller
      summary: Add a user to a team
      operationId: ResellerController_createUser
      parameters:
        - name: teamId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateResellerUserDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResellerUserDTO'
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: object
components:
  schemas:
    CreateResellerUserDto:
      type: object
      properties:
        email:
          type: string
          format: email
        firstname:
          type: string
        lastname:
          type: string
        role:
          type: string
          enum:
            - workspace_owner
            - admin
            - agent
            - manager
            - member
      required:
        - email
    ResellerUserDTO:
      type: object
      properties:
        id:
          type: string
        firstname:
          type: string
        lastname:
          type: string
        email:
          type: string
        created:
          format: date-time
          type: string
        updated:
          format: date-time
          type: string
        inboxes:
          type: array
          items:
            $ref: '#/components/schemas/ResellerInboxDTO'
        role:
          $ref: '#/components/schemas/ResellerRoleDTO'
        acceptedTermsOfService:
          type: boolean
      required:
        - id
        - firstname
        - lastname
        - email
        - created
        - updated
        - inboxes
        - role
        - acceptedTermsOfService
    ResellerInboxDTO:
      type: object
      properties:
        id:
          type: string
        phone:
          type: string
        externalId:
          type: string
        created:
          format: date-time
          type: string
        updated:
          format: date-time
          type: string
      required:
        - id
        - phone
        - externalId
        - created
        - updated
    ResellerRoleDTO:
      type: object
      properties:
        type:
          type: string
          enum:
            - workspace_owner
            - admin
            - agent
            - manager
            - member
      required:
        - type

````