Skip to main content

Workspace.Members.Current

Tags: members, users

Endpoints

Delete Me

DELETE /api/v2/w/{workspace_uuid}/me

Description:

Workspace member management

Leave a workspace.

Archives the workspace-level Member (so they no longer appear as active to others, while preserving assignments, chats, and audit history) and removes the account-to-workspace association so the user loses access.

Authentication: Requires workspace member

Response: See DeleteMembershipResponse


Me

GET /api/v2/w/{workspace_uuid}/me

Description:

Workspace member management

Get the current user's workspace member profile.

This is a self-access endpoint - no special scope required. Includes the effective scopes and org role that the API honors for this user.

Authentication: Requires workspace member

Response: See CurrentMemberResponse


Update Me

PUT /api/v2/w/{workspace_uuid}/me

Description:

Workspace member management

Update the current user's workspace member profile.

This is a self-access endpoint - no special scope required.

Authentication: Requires workspace member

Parameters:

Response: See WorkspaceMemberResponse


Credentials

GET /api/v2/w/{workspace_uuid}/me/credentials

Description:

Workspace member management

Get the current member's connected integration credentials (Discord, etc.).

This is a self-access endpoint - no special scope required.

Authentication: Requires workspace member

Response: List of MemberCredentialResponse


Delete Credentials

DELETE /api/v2/w/{workspace_uuid}/me/credentials/{credential_id}

Description:

Workspace member management

Delete/unlink a credential from the current member's account.

This is a self-access endpoint - no special scope required.

Authentication: Requires workspace member

Parameters:

  • credential_id (Integer)

Owned

GET /api/v2/w/{workspace_uuid}/members/owned

Description:

Workspace member management

Get all members owned by the AUTHENTICATED member in this workspace.

IMPORTANT: This endpoint always uses the authenticated member (the one who logged in with their account), NOT the "acting-as" member. This is critical because:

  1. Only account-based members can own other members
  2. Owned members cannot own other members (prevents recursive ownership)
  3. The identity switcher needs to always show the same list regardless of which identity is currently active

Returns the authenticated member plus all non-archived MEMBER and AGENT-type records that have owner_id pointing to the authenticated member. This enables the identity switcher UI to show available identities (including personal agents) the user can switch between.

Use POST /members/switch to switch to an owned member identity.

Authorization: Requires members:read scope

Response: List of WorkspaceMemberResponse