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

# Invite a member to an organization



## OpenAPI

````yaml https://app.getkontext.io/openapi.json post /v1/organizations/{orgId}/invite
openapi: 3.1.0
info:
  title: Kontext API
  version: 1.0.0
  description: >-
    API documentation for Kontext — generated from Zod schemas in
    @kontext/api-contract
servers:
  - url: https://getkontext.io/api
    description: Production
  - url: http://localhost:5173/api
    description: Development
security:
  - BearerAuth: []
paths:
  /v1/organizations/{orgId}/invite:
    post:
      tags:
        - Organizations
      summary: Invite a member to an organization
      parameters:
        - schema:
            type: string
          required: true
          name: orgId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  format: email
                role:
                  type: string
                  enum:
                    - admin
                    - member
              required:
                - email
                - role
      responses:
        '200':
          description: Invitation sent
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  issues:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                        message:
                          type: string
                        path:
                          type: array
                          items:
                            anyOf:
                              - type: string
                              - type: number
                      required:
                        - code
                        - message
                required:
                  - error
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  issues:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                        message:
                          type: string
                        path:
                          type: array
                          items:
                            anyOf:
                              - type: string
                              - type: number
                      required:
                        - code
                        - message
                required:
                  - error
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  issues:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                        message:
                          type: string
                        path:
                          type: array
                          items:
                            anyOf:
                              - type: string
                              - type: number
                      required:
                        - code
                        - message
                required:
                  - error
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key (ktx_key_*) or session Bearer token

````