Workspaces

Bulk remove members from a workspace

Changed on

Remove multiple members from a workspace. Members with active API keys in the workspace cannot be removed. SCIM-managed members cannot be removed; changes must be made in your identity provider. Management key required.

post/workspaces/{id}/members/remove

Request

  • Base URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string required

The workspace ID (UUID) or slug

Example:production

Request body

BulkRemoveWorkspaceMembersRequest required
user_ids, string[] required

List of user IDs to remove from the workspace

Example request

{
  "user_ids": [
    "user_abc123",
    "user_def456"
  ]
}

Response

Members removed successfully

BulkRemoveWorkspaceMembersResponse required
removed_count, integer required

Number of members removed

Example response

{
  "removed_count": 2
}

Changes

    • info

      added the optional property openrouter_metadata to the response with the status

    • info

      added the optional property openrouter_metadata to the response with the status

    • info

      added the optional property openrouter_metadata to the response with the status

    2 more changes in this revision