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

# Invite a member

> Owner or admin only. If the email belongs to a Connie account, that person is added to the workspace straight away (`invited: false`) and still gets an email. Otherwise an invitation valid for 7 days is emailed (`invited: true`). Only owners can invite someone as an owner.




## OpenAPI

````yaml /openapi/workspace.yaml post /workspaces/{workspaceId}/members
openapi: 3.1.0
info:
  title: Connie Workspace API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for workspace settings, members and API
    keys. They authenticate with your signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Settings
    description: The workspace name, logo and memory switch. Owners and admins only.
  - name: Members
    description: People in the workspace and their roles.
  - name: Invitations
    description: Email invitations and the workspace invite link.
  - name: Join requests
    description: People who asked to join the workspace.
  - name: API keys
    description: >
      Workspace API keys for MCP clients and agents. Keys work only with the
      Connie MCP server; these web app endpoints don't accept them.
paths:
  /workspaces/{workspaceId}/members:
    post:
      tags:
        - Members
      summary: Invite a member
      description: >
        Owner or admin only. If the email belongs to a Connie account, that
        person is added to the workspace straight away (`invited: false`) and
        still gets an email. Otherwise an invitation valid for 7 days is emailed
        (`invited: true`). Only owners can invite someone as an owner.
      operationId: inviteMember
      parameters:
        - $ref: '#/components/parameters/workspaceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - email
              properties:
                email:
                  type: string
                  format: email
                role:
                  $ref: '#/components/schemas/Role'
                display_name:
                  type: string
                  description: >-
                    Name to show in this workspace, used when the person is
                    added straight away.
            example:
              email: sam@example.com
              role: member
      responses:
        '201':
          description: The person was added, or an invitation was sent.
          content:
            application/json:
              schema:
                oneOf:
                  - title: Added
                    type: object
                    properties:
                      invited:
                        type: boolean
                        const: false
                      member:
                        $ref: '#/components/schemas/Membership'
                  - title: Invited
                    type: object
                    properties:
                      invited:
                        type: boolean
                        const: true
                      email:
                        type: string
                      message:
                        type: string
                      invitation:
                        type: object
                        properties:
                          id:
                            type: string
                            format: uuid
                          role:
                            $ref: '#/components/schemas/Role'
                          expiresAt:
                            type: string
                            format: date-time
                          createdAt:
                            type: string
                            format: date-time
                          invitedBy:
                            type: string
        '400':
          description: Missing email or an invalid role (`VALIDATION_ERROR`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: You are not an owner or admin, or an admin tried to invite an owner.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The person is already a member, or already has a pending invitation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    workspaceId:
      name: workspaceId
      in: path
      required: true
      description: The workspace id, as in the app URL `connie.ai/<workspaceId>/...`.
      schema:
        type: string
        format: uuid
  schemas:
    Role:
      type: string
      enum:
        - owner
        - admin
        - member
        - guest
      default: member
    Membership:
      type: object
      description: A membership record.
      properties:
        id:
          type: string
          format: uuid
          description: >-
            The membership id used by Change a member's role and Remove a
            member.
        workspace_id:
          type: string
          format: uuid
        user_id:
          type: string
          format: uuid
        email:
          type:
            - string
            - 'null'
        display_name:
          type:
            - string
            - 'null'
        role:
          $ref: '#/components/schemas/Role'
        joined_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
          description: A readable message.
        code:
          type: string
          description: >-
            A machine-readable code such as `VALIDATION_ERROR`, `FORBIDDEN` or
            `CONFLICT`, when the route sets one.
  responses:
    Unauthorized:
      description: No valid session, or the session has expired (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.