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

# Projects API

> Manage project members and access control.

# Projects API

## List members

```http theme={null}
GET /api/v1/projects/:projectId/members
Authorization: Bearer <read:secrets token>
```

**Response `200`:**

```json theme={null}
{
  "success": true,
  "data": [
    { "userId": "...", "email": "alice@example.com", "role": "owner" },
    { "userId": "...", "email": "bob@example.com", "role": "member" }
  ]
}
```

***

## Add a member

```http theme={null}
POST /api/v1/projects/:projectId/members
Authorization: Bearer <admin token>
```

**Request body:**

```json theme={null}
{ "email": "newmember@example.com", "role": "member" }
```

| Field  | Values            |
| ------ | ----------------- |
| `role` | `member`, `admin` |

**Response `200`:**

```json theme={null}
{ "success": true, "message": "Member added" }
```

***

## Remove a member

```http theme={null}
DELETE /api/v1/projects/:projectId/members/:email
Authorization: Bearer <admin token>
```

**Response `200`:**

```json theme={null}
{ "success": true, "message": "Member removed" }
```
