---
name: thoughtly-workspace
description: Invite teammates to a Thoughtly workspace, join an existing team with a personal agent credential, or review and remove workspace admins.
---

# Share a Thoughtly workspace

**Invite someone.** Confirm the intended workspace and email from the user's request. Every teammate is an equal admin who can spend the shared balance, see call history, change billing and manage other admins. Call `invite_workspace_member` with `{"email":"sam@example.com"}`. Share the returned `join_url` with the inviter so they can pass it to their teammate. Report the invitation as pending until the teammate joins. Retrying the same email returns the outstanding invitation. Use `list_workspace_members` to check its status.

**Join an invitation.** Use the invitation from the recipient's email. Open its link in the browser or send its invitation ID or token to `POST /v1/workspace/join`. Verify the recipient's email code at `POST /v1/workspace/join/verify` with `challenge_id` and `code`. Capture the returned personal `api_key` directly into the harness secret store and report only the workspace ID. Reuse the existing wallet and numbers. Read the returned `permissions` before using a worker. If its required scope is missing, ask an admin for a scoped [integration key](https://agents.thoughtly.com/account/api-keys). If the user already has a personal workspace, confirm which one they intend to use. [Workspace guide](https://agents.thoughtly.com/docs#team)

**Get team access.** For an older key, open the returned private approval link or call `request_team_access`. For an OAuth MCP connection, use `connect_workspace` and choose team management. Retry the original request after the admin approves.

If an invitation returns `workspace_restricted`, show the workspace administrator the reason. They can resume the workspace before you retry.

**Remove access.** Cancel a pending invitation with `cancel_workspace_invitation`. For an active admin, call `remove_workspace_member` with `confirm: false`, show the affected personal and integration keys, and send `confirm: true` after the user confirms. To disconnect only one of your own agents, revoke its key in [My agent keys](https://agents.thoughtly.com/account/api-keys?owner=personal). The last admin can invite a replacement before leaving. [Team API](https://agents.thoughtly.com/docs?endpoint=listWorkspaceMembers#api-reference)
