# Members

Source: https://www.pontive.com/docs/api-reference/platform/members

Base URL: `https://api.pontive.com/v1` (operations that name another server say so).

## List an instance's members

```http
GET https://api.pontive.com/v1/instances/{instance_id}/members
```

List the users holding roles on the instance itself. Everyone else reaches it through its project and workspace.

Operation ID: `ListInstanceMembers`

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `instance_id` | string | yes | Instance ID |

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `search` | string |  | Search term matched against name and email |
| `roles` | string[] |  | Filter by role |
| `page` | integer |  | Page number |
| `limit` | integer |  | Page size (default 25, at most 100) |
| `sort` | string |  | Sort order |

### Responses

- `200` OK: ListMembersResponse
- `400` Bad Request: ErrResponse
- `403` Forbidden: ErrResponse
- `404` Not Found: ErrResponse
- `500` Internal Server Error: ErrResponse

## Add an instance member

```http
POST https://api.pontive.com/v1/instances/{instance_id}/members
```

Grant roles on the instance to a member of its workspace (admin, developer, support or viewer). This is how a workspace member is given production access.

Operation ID: `CreateInstanceMember`

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `instance_id` | string | yes | Instance ID |

### Request body (`application/json`, required): AddInstanceMemberRequest

Add Instance Member Request

### Responses

- `201` Created: GetMemberResponse
- `400` Bad Request: ErrResponse
- `403` Forbidden: ErrResponse
- `404` Not Found: ErrResponse
- `500` Internal Server Error: ErrResponse

## Change an instance member's roles

```http
PATCH https://api.pontive.com/v1/instances/{instance_id}/members/{user_id}
```

Replace the roles a member holds on the instance

Operation ID: `UpdateInstanceMember`

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `instance_id` | string | yes | Instance ID |
| `user_id` | string | yes | User ID |

### Request body (`application/json`, required): UpdateInstanceMemberRolesRequest

Update Instance Member Roles Request

### Responses

- `200` OK: GetMemberResponse
- `400` Bad Request: ErrResponse
- `403` Forbidden: ErrResponse
- `404` Not Found: ErrResponse
- `500` Internal Server Error: ErrResponse

## Remove an instance member

```http
DELETE https://api.pontive.com/v1/instances/{instance_id}/members/{user_id}
```

Remove a member from the instance. They stay a member of the workspace, and of the project if they were one.

Operation ID: `DeleteInstanceMember`

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `instance_id` | string | yes | Instance ID |
| `user_id` | string | yes | User ID |

### Responses

- `204` No Content
- `400` Bad Request: ErrResponse
- `403` Forbidden: ErrResponse
- `404` Not Found: ErrResponse
- `500` Internal Server Error: ErrResponse

## List a project's members

```http
GET https://api.pontive.com/v1/projects/{project_id}/members
```

List the users holding roles on the project itself. Workspace members reach every project through the workspace and are listed there.

Operation ID: `ListProjectMembers`

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `project_id` | string | yes | Project ID |

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `search` | string |  | Search term matched against name and email |
| `roles` | string[] |  | Filter by role |
| `page` | integer |  | Page number |
| `limit` | integer |  | Page size (default 25, at most 100) |
| `sort` | string |  | Sort order |

### Responses

- `200` OK: ListMembersResponse
- `400` Bad Request: ErrResponse
- `403` Forbidden: ErrResponse
- `404` Not Found: ErrResponse
- `500` Internal Server Error: ErrResponse

## Add a project member

```http
POST https://api.pontive.com/v1/projects/{project_id}/members
```

Grant roles on the project to a member of its workspace. Someone who is not a workspace member is invited instead.

Operation ID: `CreateProjectMember`

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `project_id` | string | yes | Project ID |

### Request body (`application/json`, required): AddProjectMemberRequest

Add Project Member Request

### Responses

- `201` Created: GetMemberResponse
- `400` Bad Request: ErrResponse
- `403` Forbidden: ErrResponse
- `404` Not Found: ErrResponse
- `500` Internal Server Error: ErrResponse

## Change a project member's roles

```http
PATCH https://api.pontive.com/v1/projects/{project_id}/members/{user_id}
```

Replace the roles a member holds on the project (admin, developer or viewer)

Operation ID: `UpdateProjectMember`

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `project_id` | string | yes | Project ID |
| `user_id` | string | yes | User ID |

### Request body (`application/json`, required): UpdateProjectMemberRolesRequest

Update Project Member Roles Request

### Responses

- `200` OK: GetMemberResponse
- `400` Bad Request: ErrResponse
- `403` Forbidden: ErrResponse
- `404` Not Found: ErrResponse
- `500` Internal Server Error: ErrResponse

## Remove a project member

```http
DELETE https://api.pontive.com/v1/projects/{project_id}/members/{user_id}
```

Remove a member from the project. They stay a member of the workspace.

Operation ID: `DeleteProjectMember`

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `project_id` | string | yes | Project ID |
| `user_id` | string | yes | User ID |

### Responses

- `204` No Content
- `400` Bad Request: ErrResponse
- `403` Forbidden: ErrResponse
- `404` Not Found: ErrResponse
- `500` Internal Server Error: ErrResponse

## List workspace members

```http
GET https://api.pontive.com/v1/workspaces/{workspace_id}/members
```

Get a list of the workspace's members

Operation ID: `ListWorkspaceMembers`

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | string | yes | Workspace ID |

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `search` | string |  | Search term matched against name and email |
| `roles` | string[] |  | Filter by role |
| `page` | integer |  | Page number |
| `limit` | integer |  | Page size (default 25, at most 100) |
| `sort` | string |  | Sort order |

### Responses

- `200` OK: ListMembersResponse
- `400` Bad Request: ErrResponse
- `403` Forbidden: ErrResponse
- `404` Not Found: ErrResponse
- `500` Internal Server Error: ErrResponse

## Update a member's roles

```http
PATCH https://api.pontive.com/v1/workspaces/{workspace_id}/members/{user_id}
```

Replace the roles a member holds in the workspace. Granting owner, or changing an owner's roles, is an owner's; a token acting for a Pontive user (the Pontive MCP server) is refused it with 403 actor_refused, as ownership is the dashboard's.

Operation ID: `UpdateWorkspaceMember`

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | string | yes | Workspace ID |
| `user_id` | string | yes | User ID |

### Request body (`application/json`, required): UpdateMemberRolesRequest

Update Member Roles Request

### Responses

- `200` OK: GetMemberResponse
- `400` Bad Request: ErrResponse
- `403` Forbidden: ErrResponse
- `404` Not Found: ErrResponse
- `500` Internal Server Error: ErrResponse

## Remove a member

```http
DELETE https://api.pontive.com/v1/workspaces/{workspace_id}/members/{user_id}
```

Remove a member from the workspace. Removing an owner is an owner's; a token acting for a Pontive user (the Pontive MCP server) is refused it with 403 actor_refused, as ownership is the dashboard's.

Operation ID: `DeleteWorkspaceMember`

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | string | yes | Workspace ID |
| `user_id` | string | yes | User ID |

### Responses

- `204` No Content
- `400` Bad Request: ErrResponse
- `403` Forbidden: ErrResponse
- `404` Not Found: ErrResponse
- `500` Internal Server Error: ErrResponse

## List a member's grants

```http
GET https://api.pontive.com/v1/workspaces/{workspace_id}/members/{user_id}/grants
```

The roles a workspace member holds on the workspace's projects and instances directly, on top of what their workspace role reaches by inheritance.

Operation ID: `ListWorkspaceMemberGrants`

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | string | yes | Workspace ID |
| `user_id` | string | yes | User ID |

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `page` | integer |  | Page number |
| `limit` | integer |  | Page size (default 25, at most 100) |

### Responses

- `200` OK: ListGrantsResponse
- `400` Bad Request: ErrResponse
- `403` Forbidden: ErrResponse
- `404` Not Found: ErrResponse
- `500` Internal Server Error: ErrResponse

## Transfer workspace ownership

```http
POST https://api.pontive.com/v1/workspaces/{workspace_id}/transfer-ownership
```

Hand the workspace to another member, who must already belong to it

Operation ID: `TransferWorkspaceOwnership`

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | string | yes | Workspace ID |

### Request body (`application/json`, required): TransferOwnershipRequest

Transfer Ownership Request

### Responses

- `204` No Content
- `400` Bad Request: ErrResponse
- `403` Forbidden: ErrResponse
- `404` Not Found: ErrResponse
- `500` Internal Server Error: ErrResponse

## Schemas

### ListMembersResponse

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | Member[] |  | List of members |
| `object` | string |  | The object type |
| `pagination` | Pagination |  | Pagination information |

### ErrResponse

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | ErrBody |  |  |

### AddInstanceMemberRequest

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `roles` | string[] |  | The roles to hold on the instance required: true enum: admin,developer,support,viewer |
| `user_id` | string |  | The user to add. They must already be a member of the instance's workspace; anyone else is invited to the workspace or project first. required: true |

### GetMemberResponse

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `email` | string |  | The email address of the member |
| `email_verified` | boolean |  | Whether the member's email address has been verified |
| `family_name` | string |  | The family name of the member |
| `given_name` | string |  | The given name of the member |
| `joined_at` | string (date-time) |  | The time when the member joined the workspace |
| `last_active_at` | string (date-time) |  | The time when the member was last active |
| `name` | string |  | The display name of the member |
| `object` | string |  | The object type |
| `picture` | string |  | The profile picture of the member |
| `roles` | string[] |  | The roles the member holds on the workspace, project or instance the list is of. A workspace member holds owner, admin, billing or developer — or none, for someone added to one of its projects or instances alone. A project member holds admin, developer or viewer; an instance member admin, developer, support or viewer. |
| `status` | string |  | The status of the member's account |
| `user_id` | string |  | The unique identifier of the user |

### UpdateInstanceMemberRolesRequest

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `roles` | string[] |  | The roles to hold on the instance, replacing the member's current ones required: true enum: admin,developer,support,viewer |

### AddProjectMemberRequest

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `roles` | string[] |  | The roles to hold on the project required: true enum: admin,developer,viewer |
| `user_id` | string |  | The user to add. They must already be a member of the project's workspace; anyone else is invited instead. required: true |

### UpdateProjectMemberRolesRequest

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `roles` | string[] |  | The roles to hold on the project, replacing the member's current ones required: true enum: admin,developer,viewer |

### UpdateMemberRolesRequest

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `roles` | string[] |  | The roles to grant, replacing the member's current ones. An empty list leaves them a member holding no role: belonging to the workspace for the sake of what they hold on its projects and instances. required: true enum: owner,admin,billing,developer |

### ListGrantsResponse

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | Grant[] |  | The grants, projects first, then instances, each by name |
| `object` | string |  | The object type |
| `pagination` | core_paging.Pagination |  | Pagination information |

### TransferOwnershipRequest

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `new_owner_id` | string |  | The member who becomes the new owner. They must already be a member. required: true |
| `retain_as` | string[] |  | The roles the caller keeps once they are no longer an owner. Defaults to admin; an empty list leaves them a member with no role. |

### Member

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `email` | string |  | The email address of the member |
| `email_verified` | boolean |  | Whether the member's email address has been verified |
| `family_name` | string |  | The family name of the member |
| `given_name` | string |  | The given name of the member |
| `joined_at` | string (date-time) |  | The time when the member joined the workspace |
| `last_active_at` | string (date-time) |  | The time when the member was last active |
| `name` | string |  | The display name of the member |
| `object` | string |  | The object type |
| `picture` | string |  | The profile picture of the member |
| `roles` | string[] |  | The roles the member holds on the workspace, project or instance the list is of. A workspace member holds owner, admin, billing or developer — or none, for someone added to one of its projects or instances alone. A project member holds admin, developer or viewer; an instance member admin, developer, support or viewer. |
| `status` | string |  | The status of the member's account |
| `user_id` | string |  | The unique identifier of the user |

### Pagination

Pagination information

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer |  | Number of records per page |
| `page` | integer |  | Current page number |
| `total` | integer |  | Total number of records |
| `total_pages` | integer |  | Total number of pages |

### ErrBody

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `code` | string |  | Code is a stable machine-readable identifier for this error: the domain code where one exists (e.g. slug_conflict, instance_not_found, confirmation_required), else the spec's generic code (invalid_request, permission_denied, not_found, conflict, internal_error). |
| `doc_url` | string |  | DocURL links to documentation about this error, when available. |
| `message` | string |  | Message is a human-readable description of what went wrong. |
| `object` | string |  | Object is the discriminator; always "error". |
| `param` | string |  | Param names the request parameter this error refers to, when applicable. |
| `type` | string |  | Type is the error's category, from its HTTP status: validation_error, authentication_error, authorization_error, not_found, conflict_error, rate_limit_error or internal_error. |

### Grant

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `environment` | string |  | The instance's environment enum: production,non_production |
| `instance_id` | string |  | The instance granted on, for a grant on an instance |
| `instance_name` | string |  | The instance's name |
| `joined_at` | string (date-time) |  | When the grant was made |
| `object` | string |  | The object type |
| `project_id` | string |  | The project: the one granted on, or the instance's |
| `project_name` | string |  | The project's name |
| `resource_type` | string |  | What the grant is on enum: project,instance |
| `roles` | string[] |  | The roles held there |

### core_paging.Pagination

Pagination information

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer |  | The page size |
| `page` | integer |  | The page number, from 1 |
| `total` | integer |  | The number of items in the whole list |
| `total_pages` | integer |  | The number of pages |
