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

# Add a team member



## OpenAPI

````yaml post /v1/teams/{teamId}/members
openapi: 3.0.0
info:
  title: Thena Platform
  description: The Thena Platform API description
  version: 1.0.0
  contact: {}
servers:
  - url: https://platform.thena.ai
    description: Platform
  - url: http://localhost:8000
    description: Local
security:
  - ApiKey: []
tags: []
paths:
  /v1/teams/{teamId}/members:
    post:
      tags:
        - Teams
      summary: Add a team member
      parameters:
        - name: teamId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddTeamMemberDto'
      responses:
        '201':
          description: Operation successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamMemberResponseDto'
        '401':
          description: User is not authenticated!
        '403':
          description: User does not have access to this resource!
        '404':
          description: Resource not found!
        '429':
          description: Too many requests!
        '500':
          description: Something went wrong!
        '503':
          description: This service/resource is currently unavailable.
components:
  schemas:
    AddTeamMemberDto:
      type: object
      properties:
        email:
          type: string
          description: The email address of the user to add to the team.
        userId:
          type: string
          description: The user ID of the user to add to the team.
        isAdmin:
          type: boolean
          description: Whether the user should be added as an admin to the team.
    TeamMemberResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The ID of the team member
        name:
          type: string
          description: The name of the team member
        email:
          type: string
          description: The email of the team member
        invitedBy:
          type: string
          description: The name of the user who invited the team member
        teamId:
          type: string
          description: The ID of the team
        teamName:
          type: string
          description: The name of the team
        isActive:
          type: boolean
          description: Whether the team member is active
        role:
          type: string
          description: The role of the team member
        userType:
          type: string
          description: The type of the user
        isOwner:
          type: boolean
          description: Whether the team member is the owner of the team
        avatarUrl:
          type: string
          description: The avatar url of the team member
        joinedAt:
          type: string
          description: The joined date of the team member
        createdAt:
          type: string
          description: The created date of the team member
        metadata:
          type: object
          description: The metadata of the user
      required:
        - id
        - name
        - email
        - teamId
        - teamName
        - isActive
        - role
        - userType
        - isOwner
        - avatarUrl
        - joinedAt
        - createdAt
        - metadata
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Enter your API key '

````