Skip to content

Team Members API

Base path: /api/v1/projects/{project_id}/members

Endpoints

MethodEndpointDescription
GET/projects/{id}/membersList team members
POST/projects/{id}/membersInvite a team member
PUT/projects/{id}/members/{member_id}Update member role
DELETE/projects/{id}/members/{member_id}Remove a team member

Roles

Team members have one of three roles:

RolePermissions
ownerFull control including team management
editorRead/write access to papers and projects
viewerRead-only access

Invite Member

POST /projects/{id}/members

Request body:

json
{
  "email": "user@example.com",
  "role": "editor"
}

Sends an invitation to the specified email. The invite is tracked by email since the app is currently single-user.

Update Role

PUT /projects/{id}/members/{member_id}

Request body:

json
{
  "role": "owner"
}

Authentication

The RBAC middleware uses X-User-Email header for identity. Without it, single-user mode is assumed and access is granted.

Released under the MIT License.