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

# Create invitation

> Invite a user to the organization



## OpenAPI

````yaml api-docs/archived/organizations.json post /v1/regions/global/organizations/{orgId}/invitations
openapi: 3.1.1
info:
  title: Organizations API
  version: 1.0.0
  description: >-
    Organizations API for the k0rdent Enterprise platform. Provides organization
    lifecycle management, project grouping, invitations, quotas, and folder
    hierarchy.
  contact:
    name: k0rdent Enterprise API Support
    email: api-support@example.com
    url: https://support.example.com
  license:
    name: Proprietary
    url: https://k0rdent.example.com/license
servers:
  - url: ''
    description: For documentation only
  - url: https://api.example.com
    description: Arc API Base URL
  - url: https://api.internal.example.com
    description: Atlas API Base URL
  - url: http://localhost:{port}
    description: Local Development
    variables:
      port:
        default: '4010'
        description: Organizations service port
security: []
paths:
  /v1/regions/global/organizations/{orgId}/invitations:
    post:
      tags:
        - Organization Invitations
      summary: Create invitation
      description: Invite a user to the organization
      operationId: createOrgInvitation
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: Organization identifier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  format: email
                  description: Invitee email
                role:
                  type: string
                  enum:
                    - admin
                    - operator
                    - member
                    - viewer
                  description: Role to assign
              required:
                - email
                - role
      responses:
        '201':
          description: Invitation created
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/Invitation'
components:
  schemas:
    Invitation:
      type: object
      description: Project invitation entity
      properties:
        id:
          type: string
          description: Invitation identifier
        token:
          type: string
          description: Invitation token
        email:
          type: string
          format: email
          description: Invitee email address
        projectId:
          type: string
          description: Target project
        organizationId:
          type: string
          description: Parent organization
        role:
          type: string
          enum:
            - admin
            - operator
            - member
            - viewer
          description: Role to be assigned in the project
        status:
          type: string
          enum:
            - pending
            - accepted
            - rejected
            - expired
          description: Invitation status
        invitedBy:
          type: string
          description: User ID of inviter
        expiresAt:
          type: string
          format: date-time
          description: Invitation expiration
        createdAt:
          type: string
          format: date-time
          description: Creation timestamp
        acceptedAt:
          type: string
          format: date-time
          nullable: true
          description: Acceptance timestamp
      required:
        - id
        - token
        - email
        - projectId
        - organizationId
        - role
        - status

````