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_id

Endpoints

MethodEndpointDescription
POST/v1/organizations/workspaces/:workspace_id/membersAdd a workspace member
GET/v1/organizations/workspaces/:workspace_id/membersList workspace members
GET/v1/organizations/workspaces/:workspace_id/members/:user_idRetrieve a workspace member
POST/v1/organizations/workspaces/:workspace_id/members/:user_idUpdate a workspace member
DELETE/v1/organizations/workspaces/:workspace_id/members/:user_idRemove a workspace member

Workspace roles

RoleCanAssigned
workspace_userUse the playground in the workspaceYes
workspace_developerworkspace_user, plus create and manage API keys and use the APIYes
workspace_adminFull control of the workspace's settings and membersYes
workspace_billingView the workspace's billingNo, inherited

Inherited roles

Some members hold a workspace role because of their organization role. They are listed like any other member:

  • Organization owner and admin members are workspace_admin in every workspace. Their workspace role can't be changed or removed.
  • In the Default Workspace, every organization member is a member: developer members as workspace_developer, everyone else (including billing members) as workspace_user, unless they are given another role there.
  • In every other workspace, organization billing members are workspace_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'optional

Always workspace_member.

user_idstringoptional

The user's ID. Lists page on this ID.

workspace_idstringoptional

The workspace's ID.

workspace_rolestringoptional

The 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"
}