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

# Send bulk project invitations

> Send multiple email invitations to users to join your project. Uses batch email sending to avoid rate limits.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/project/invitation/send/bulk
openapi: 3.1.0
info:
  title: Diga API
  version: 0.1.0
servers:
  - url: https://api.diga.io
    description: Production
security: []
paths:
  /v1/project/invitation/send/bulk:
    post:
      tags:
        - Project Invitations
      summary: Send bulk project invitations
      description: >-
        Send multiple email invitations to users to join your project. Uses
        batch email sending to avoid rate limits.
      operationId: send_bulk_invitation_mail_v1_project_invitation_send_bulk_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkInvitationCreateSchema'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkInvitationResponseSchema'
        '404':
          description: Project Not Found
          content:
            application/json:
              example:
                status: error
                error_code: PROJECT_NOT_FOUND
                message: Project 550e8400-e29b-41d4-a716-446655440000 not found
              schema:
                $ref: '#/components/schemas/ErrorResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              example:
                status: error
                error_code: INTERNAL_SERVER_ERROR
                message: 'Error: Internal Server Error'
              schema:
                $ref: '#/components/schemas/ErrorResponseSchema'
      security:
        - CustomHTTPBearer: []
components:
  schemas:
    BulkInvitationCreateSchema:
      properties:
        invitations:
          items:
            $ref: '#/components/schemas/InvitationCreateSchema'
          type: array
          title: Invitations
      type: object
      required:
        - invitations
      title: BulkInvitationCreateSchema
    BulkInvitationResponseSchema:
      properties:
        successful:
          items:
            $ref: '#/components/schemas/InvitationResponseSchema'
          type: array
          title: Successful
        failed:
          items:
            $ref: '#/components/schemas/InvitationResultSchema'
          type: array
          title: Failed
      type: object
      required:
        - successful
        - failed
      title: BulkInvitationResponseSchema
    ErrorResponseSchema:
      properties:
        status:
          type: string
          title: Status
          description: Status of the response, always 'error' for error responses
          default: error
        error_code:
          type: string
          title: Error Code
          description: Machine-readable error code in SCREAMING_SNAKE_CASE format
          examples:
            - PROJECT_NOT_FOUND
            - INVALID_EMAIL
            - UNAUTHORIZED_ROLE
        message:
          type: string
          title: Message
          description: Human-readable error message with details
          examples:
            - Project with id 550e8400-e29b-41d4-a716-446655440000 not found
            - The email invalid@email is not valid
            - Insufficient permissions to perform this action
      type: object
      required:
        - error_code
        - message
      title: ErrorResponseSchema
      description: Standard error response format for all API errors.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    InvitationCreateSchema:
      properties:
        role:
          $ref: '#/components/schemas/AppRole'
          default: member
        email:
          type: string
          title: Email
      type: object
      required:
        - email
      title: InvitationCreateSchema
    InvitationResponseSchema:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        invited_email:
          type: string
          title: Invited Email
        inviter_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Inviter Name
        project_id:
          type: string
          format: uuid
          title: Project Id
        project_name:
          type: string
          title: Project Name
        created_at:
          type: string
          format: date-time
          title: Created At
        registered:
          type: boolean
          title: Registered
        invited_profile_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Invited Profile Id
        expires_at:
          type: string
          format: date-time
          title: Expires At
        role:
          $ref: '#/components/schemas/AppRole'
      type: object
      required:
        - id
        - invited_email
        - project_id
        - project_name
        - created_at
        - registered
        - expires_at
        - role
      title: InvitationResponseSchema
    InvitationResultSchema:
      properties:
        email:
          type: string
          title: Email
        success:
          type: boolean
          title: Success
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        invitation:
          anyOf:
            - $ref: '#/components/schemas/InvitationResponseSchema'
            - type: 'null'
      type: object
      required:
        - email
        - success
      title: InvitationResultSchema
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    AppRole:
      type: string
      enum:
        - admin
        - member
        - reader
      title: AppRole
  securitySchemes:
    CustomHTTPBearer:
      type: http
      scheme: bearer

````