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

# Invite Member

> Invite a user to a project by email.

## Path Parameters

<ParamField path="projectId" type="string" required>
  Project ID.
</ParamField>

## Body

<ParamField body="email" type="string" required>
  Email of the user to invite.
</ParamField>

<ParamField body="role" type="string">
  Role to assign: `VIEWER`, `EDITOR`, or `ADMIN`. Defaults to `VIEWER`.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST http://localhost:3000/api/v1/projects/clxyz456/members/invite \
    -H "Authorization: Bearer <token>" \
    -H "Content-Type: application/json" \
    -d '{"email": "jane@example.com", "role": "EDITOR"}'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": "clmem001",
    "userId": "cljane001",
    "projectId": "clxyz456",
    "role": "EDITOR"
  }
  ```
</ResponseExample>
