---
title: "Bulk add members to a workspace"
method: POST
path: "/workspaces/{id}/members/add"
tags: ["Workspaces"]
---

# Bulk add members to a workspace

`POST /workspaces/{id}/members/add`

Add multiple organization members to a workspace. Members are assigned the same role they hold in the organization. [Management key](/docs/guides/overview/auth/management-api-keys) required.

## Path parameters

- `id` string, required — The workspace ID (UUID) or slug

## Request body

- BulkAddWorkspaceMembersRequest
  - `user_ids` string[], required — List of user IDs to add to the workspace. Members are assigned the same role they hold in the organization.

## Response `200`

Members added successfully

- BulkAddWorkspaceMembersResponse
  - `added_count` integer, required — Number of workspace memberships created or updated
  - `data` WorkspaceMember[], required — List of added workspace memberships
    - `created_at` string, required — ISO 8601 timestamp of when the membership was created
    - `id` string, uuid, required — Unique identifier for the workspace membership
    - `role` 'admin' | 'member', required — Role of the member in the workspace
    - `user_id` string, required — Clerk user ID of the member
    - `workspace_id` string, uuid, required — ID of the workspace

## Other responses

- `400` — Bad Request - Invalid request parameters or malformed input
- `401` — Unauthorized - Authentication required or invalid credentials
- `403` — Forbidden - Authentication successful but insufficient permissions
- `404` — Not Found - Resource does not exist
- `500` — Internal Server Error - Unexpected server error

---

[API](https://skmtc.net/openrouterteam/apis/openrouter-api.md) · [All operations](https://skmtc.net/openrouterteam/apis/openrouter-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openrouterteam/openrouter-api/versions/fe902fcd8b57/schema)
