Skip to main content
POST
/
projects
/
{projectId}
/
members
/
invite
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"}'
{
  "id": "clmem001",
  "userId": "cljane001",
  "projectId": "clxyz456",
  "role": "EDITOR"
}

Path Parameters

projectId
string
required
Project ID.

Body

email
string
required
Email of the user to invite.
role
string
Role to assign: VIEWER, EDITOR, or ADMIN. Defaults to VIEWER.
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"}'
{
  "id": "clmem001",
  "userId": "cljane001",
  "projectId": "clxyz456",
  "role": "EDITOR"
}