Skip to content

List members

GET/v1/workspaces/{workspace_uid}/members

Returns the workspace's members in the order they joined, with each member's role and permissions. is_current_user marks you.

Any workspace role can call this.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

workspace_uidstringRequired

The workspace's uid. When the route also takes X-Workspace-Slug, both must name the same workspace.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The workspace's members.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataarray of objects
Show item attributes
uidstringRequired

Unique identifier of the membership. Use it in /members/{member_uid} paths.

user_uidstringRequired

The member's user ID.

usernamestringRequired

The member's username.

emailstringRequired

The member's email address.

avatar_urlstring

API-relative path of the member's profile picture. Omitted when they have none.

rolestringRequired

The member's role.

One ofowneradmindeveloperviewer

permissionsarray of stringsRequired

The permissions the role grants.

One ofworkspace.readworkspace.manageresource.writeruntime.connectsecrets.readsecrets.managemembers.manageaudit.readbilling.readbilling.manageworkspace.transferworkspace.delete

statusstringRequired

Membership status. Only active members can access the workspace.

One ofactivesuspended

joined_atstring (date-time)Required

When the member joined.

invited_byobject

Who invited the member. Omitted for the owner and when unknown.

Show attributes
uidstringRequired

The user's ID.

usernamestringRequired

The user's username.

is_current_userbooleanRequired

true for your own membership.

Errors

StatusMeaning
400The request was malformed or failed validation.
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.

Errors use the standard error format.