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

# Add a member

> Gives a person access to the Kintra CMS for your tenant. `email` and `role` are both required. A `role` of `super_admin` can manage everything under the tenant, members and API keys included; `read_only` can read members, API keys and the analytics summary and change nothing. An address that already holds a Kintra tenant account joins with that account; one that does not gets an account created and an email with a link to set a password. The response `data` carries the new membership. An address already a member of this tenant returns 409.



## OpenAPI

````yaml /openapi/kintra-app.json post /tenant/{tenantId}/members
openapi: 3.0.0
info:
  description: >-
    Tenant portal API for the Kintra loyalty platform. Requests are
    authenticated with an Auth0 bearer token and address a tenant by id in the
    path.
  title: Kintra Portal API
  version: 1.0.0
servers:
  - description: Production environment
    url: https://api.kintra.io/api/v1
security: []
paths:
  /tenant/{tenantId}/members:
    post:
      tags:
        - Members
      summary: Add a member
      description: >-
        Gives a person access to the Kintra CMS for your tenant. `email` and
        `role` are both required. A `role` of `super_admin` can manage
        everything under the tenant, members and API keys included; `read_only`
        can read members, API keys and the analytics summary and change nothing.
        An address that already holds a Kintra tenant account joins with that
        account; one that does not gets an account created and an email with a
        link to set a password. The response `data` carries the new membership.
        An address already a member of this tenant returns 409.
      operationId: TenantAddMember
      parameters:
        - in: path
          name: tenantId
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IAddTenantMemberBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_ITenantMemberResponseDto_'
          description: Ok
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_ITenantMemberResponseDto_'
          description: ''
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Tenant not found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Member already exists
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_null_'
          description: Internal server error
      security:
        - auth0_jwt: []
components:
  schemas:
    IAddTenantMemberBody:
      additionalProperties: false
      properties:
        email:
          type: string
        role:
          $ref: '#/components/schemas/TenantMemberRole'
      required:
        - email
        - role
      type: object
    ApiResponse_ITenantMemberResponseDto_:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/ITenantMemberResponseDto'
        errors:
          items:
            properties:
              message:
                type: string
              path:
                type: string
            required:
              - path
              - message
            type: object
          type: array
        message:
          type: string
        success:
          type: boolean
      required:
        - success
      type: object
    ApiResponse_null_:
      additionalProperties: false
      properties:
        data:
          enum:
            - null
          nullable: true
          type: number
        errors:
          items:
            properties:
              message:
                type: string
              path:
                type: string
            required:
              - path
              - message
            type: object
          type: array
        message:
          type: string
        success:
          type: boolean
      required:
        - success
      type: object
    TenantMemberRole:
      description: >-
        Portal operator roles that can be assigned to tenant members (not
        loyalty `user`).
      enum:
        - super_admin
        - read_only
      type: string
    ITenantMemberResponseDto:
      additionalProperties: false
      properties:
        created_at:
          format: date-time
          type: string
        email:
          type: string
        id:
          type: string
        roles:
          items:
            $ref: '#/components/schemas/ITenantMemberRoleDto'
          type: array
        status:
          type: string
        tenant_id:
          type: string
        updated_at:
          format: date-time
          type: string
        user_id:
          type: string
        username:
          type: string
      required:
        - id
        - tenant_id
        - user_id
        - email
        - username
        - status
        - roles
        - created_at
        - updated_at
      type: object
    ITenantMemberRoleDto:
      additionalProperties: false
      properties:
        created_at:
          format: date-time
          type: string
        role_id:
          type: string
      required:
        - role_id
      type: object
  securitySchemes:
    auth0_jwt:
      bearerFormat: JWT
      description: Auth0 access token
      scheme: bearer
      type: http

````