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

# Invite a member (owner/admin only)

> ⚠️ SECURITY: Only organization OWNERS and ADMINS can invite new members. Members cannot invite others.



## OpenAPI

````yaml https://api.timbrix.mx/api/openapi.json post /organizations/{id}/members/invite
openapi: 3.0.0
info:
  title: Timbrix API
  description: >-
    API de facturación electrónica CFDI 4.0 para México, con servidor OAuth2
    para gestionar organizaciones, miembros y webhooks. Compatible con agentes
    de IA — ver la extensión `x-ai-agent-friendly` en la raíz de esta spec.


    REST API with OAuth2 server for managing organizations, members, and
    webhooks.
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: organizations
    description: Organization management endpoints
  - name: oauth
    description: OAuth2 authentication and authorization
  - name: webhooks
    description: Webhook configuration and delivery
  - name: users
    description: User information endpoints
  - name: api-keys
    description: API Keys management and validation
paths:
  /organizations/{id}/members/invite:
    post:
      tags:
        - organizations
      summary: Invite a member (owner/admin only)
      description: >-
        ⚠️ SECURITY: Only organization OWNERS and ADMINS can invite new members.
        Members cannot invite others.
      operationId: OrganizationsController_invite
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InviteMemberDto'
      responses:
        '201':
          description: Invitation created successfully. Email sent to the invitee.
        '400':
          description: Invalid input data. Check email format and role value.
        '401':
          description: Authentication required. Provide a valid bearer token.
        '403':
          description: Access denied. Only owners and admins can invite members.
        '404':
          description: Organization not found with the provided ID.
        '409':
          description: User is already a member or has a pending invitation.
      security:
        - bearer: []
components:
  schemas:
    InviteMemberDto:
      type: object
      properties:
        email:
          type: string
          description: Email address of the user to invite
          example: user@example.com
        role:
          type: string
          description: Role to assign to the invited member
          enum:
            - admin
            - member
          example: member
      required:
        - email
        - role
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````