Workspace Members
Give organization members a role in a workspace, change it or take it away.
Workspace members are the people who can use a workspace, each with a workspace role. Only members of your organization can be added.
POST /v1/organizations/workspaces/:workspace_id/members
GET /v1/organizations/workspaces/:workspace_id/members
GET /v1/organizations/workspaces/:workspace_id/members/:user_id
POST /v1/organizations/workspaces/:workspace_id/members/:user_id
DELETE /v1/organizations/workspaces/:workspace_id/members/:user_idEndpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/organizations/workspaces/:workspace_id/members | Add a workspace member |
| GET | /v1/organizations/workspaces/:workspace_id/members | List workspace members |
| GET | /v1/organizations/workspaces/:workspace_id/members/:user_id | Retrieve a workspace member |
| POST | /v1/organizations/workspaces/:workspace_id/members/:user_id | Update a workspace member |
| DELETE | /v1/organizations/workspaces/:workspace_id/members/:user_id | Remove a workspace member |
Workspace roles
| Role | Can | Assigned |
|---|---|---|
workspace_user | Use the playground in the workspace | Yes |
workspace_developer | workspace_user, plus create and manage API keys and use the API | Yes |
workspace_admin | Full control of the workspace's settings and members | Yes |
workspace_billing | View the workspace's billing | No, inherited |
Inherited roles
Some members hold a workspace role because of their organization role. They are listed like any other member:
- Organization
ownerandadminmembers areworkspace_adminin every workspace. Their workspace role can't be changed or removed. - In the Default Workspace, every organization member is a member:
developermembers asworkspace_developer, everyone else (includingbillingmembers) asworkspace_user, unless they are given another role there. - In every other workspace, organization
billingmembers areworkspace_billing, unless they are given another role there.
Removing a member deletes the role given to them in that workspace. An inherited role stays as long as the organization role does.
The workspace member object
type'workspace_member'optionalAlways workspace_member.
user_idstringoptionalThe user's ID. Lists page on this ID.
workspace_idstringoptionalThe workspace's ID.
workspace_rolestringoptionalThe member's workspace role.
Allowed values:
workspace_userworkspace_developerworkspace_adminworkspace_billing{
"type": "workspace_member",
"user_id": "c3a9e2d4-1f6b-4b7a-9e05-8d2c6f1a3b90",
"workspace_id": "2f7a9c3e-6d1b-4e8a-a4f2-5c0b9d7e1a38",
"workspace_role": "workspace_developer"
}