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

# Create Client invite

> Generate a portal-membership invite for the given email and role. Returns the raw token once — store the link immediately.



## OpenAPI

````yaml post /clients/{clientId}/invites
openapi: 3.1.1
info:
  title: Dolfin API
  description: >-
    Dolfin API for AR & AP. Authenticate using the `x-dolfin-api-key` header
    with the API key distributed to your organisation.
  version: v1
servers:
  - url: https://api.dolfinai.co
    description: Production
security:
  - {}
tags:
  - name: Webhooks
  - name: Users
  - name: TaxRates
  - name: Suppliers
  - name: Supplier Credit Notes
  - name: Bills
  - name: SpendCategories
  - name: Payables
  - name: RecurringInvoices
  - name: Receivables
  - name: Purchase Orders
  - name: Products
  - name: Payments
  - name: Invoices
  - name: Organisations
  - name: Members
  - name: MCP
  - name: Matching
  - name: Invoice Reminders
  - name: Industries
  - name: Gmail
  - name: Delivery Notes
  - name: Customers
  - name: Currencies
  - name: Credit Notes
  - name: Clients
  - name: ClientInvites
  - name: BankPayments
  - name: Bank details
  - name: Auth
  - name: ApprovalPolicies
  - name: ApiKeys
  - name: Agent
paths:
  /clients/{clientId}/invites:
    post:
      tags:
        - ClientInvites
      summary: Create Client invite
      description: >-
        Generate a portal-membership invite for the given email and role.
        Returns the raw token once — store the link immediately.
      parameters:
        - name: clientId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateClientInviteRequest'
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientInviteWithTokenResponse'
        '400':
          description: ClientInvite.InvalidEmail — email is missing or malformed
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Member.Forbidden — caller is not an Admin or Owner of this Client
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '409':
          description: >-
            ClientInvite.AlreadyMember — a user with this email is already a
            member


            ClientInvite.AlreadyInvited — an outstanding invite already exists
            for this email
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    CreateClientInviteRequest:
      required:
        - email
        - role
      type: object
      properties:
        email:
          type: string
        role:
          $ref: '#/components/schemas/ClientRole'
    ClientInviteWithTokenResponse:
      required:
        - token
        - id
        - clientId
        - email
        - role
        - createdAt
        - expiresAt
        - invitedBy
      type: object
      properties:
        token:
          type: string
        id:
          type: string
          format: uuid
        clientId:
          type: string
          format: uuid
        email:
          type: string
        role:
          $ref: '#/components/schemas/ClientRole'
        createdAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
        invitedBy:
          type:
            - 'null'
            - string
          format: uuid
    ProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
    ClientRole:
      enum:
        - Member
        - Developer
        - Support
        - Admin
        - Owner

````