# Smallworld

> Smallworld provides persistent terminal environments, connected integrations, and tool approvals for applications and agents.

Public Markdown documentation for the Smallworld API and integration guides. API requests use `https://api.smallworld.sh/api/v1`. Documentation can be read without signing in; dashboard actions and API operations require authentication.

## Start here

- [Overview](https://smallworld.sh/docs/overview.md): How worlds, users, sessions, and executions work together.
- [Quick start](https://smallworld.sh/docs/guides/quick-start.md): Run your first command, read the result, and keep a session between commands.
- [Authentication](https://smallworld.sh/docs/authentication.md): Call Smallworld from your backend with a workspace API key.
- [Connect a coding agent](https://smallworld.sh/docs/guides/builder-agents.md): Use the hosted builder MCP from Codex or Claude Code with browser sign-in.

## Guides

- [Approve a tool call](https://smallworld.sh/docs/guides/approve-tool-call.md): Handle tool and provider decisions, then continue the execution.
- [Connect a group](https://smallworld.sh/docs/guides/connect-group.md): Share one connected account with every user in a group, such as a customer's team.
- [Connect a user’s account](https://smallworld.sh/docs/guides/connect-user.md): Connect an account through OAuth or API-key entry and use it in a world.
- [Build a custom integration](https://smallworld.sh/docs/guides/custom-integrations.md): Expose your own tools, test a signed endpoint, and enable it in a world.
- [Send and receive files](https://smallworld.sh/docs/guides/files.md): Upload files with a command, then save the files it creates or changes.
- [Mounts](https://smallworld.sh/docs/guides/mounts.md): Mount shared folders into your users' terminals and decide which changes agents may make to them.
- [Review tool calls with hooks](https://smallworld.sh/docs/guides/tool-call-hooks.md): Let your own endpoint allow, ask about, or deny each integration tool call before it runs.

## API: Worlds

- [Create a World](https://smallworld.sh/docs/create-world.md): Create a World in your workspace.
- [Delete a World](https://smallworld.sh/docs/delete-world.md): Delete a World owned by your workspace.
- [Get a World](https://smallworld.sh/docs/get-world.md): Read a World owned by your workspace.
- [List Worlds](https://smallworld.sh/docs/list-worlds.md): List the Worlds owned by your workspace, one page at a time.
- [Update a World](https://smallworld.sh/docs/update-world.md): Change a World’s name, description, or icon.

## API: Configuration

- [Remove the app profile](https://smallworld.sh/docs/delete-app-profile.md): Remove custom branding and restore the shared Smallworld client branding.
- [Get the app profile](https://smallworld.sh/docs/get-app-profile.md): Read the name and branding used on provider consent screens.
- [Get integration configuration](https://smallworld.sh/docs/get-integration-configuration.md): Read one integration’s workspace configuration.
- [Get a provider OAuth app](https://smallworld.sh/docs/get-integration-oauth-app.md): Read the provider app used for end-user OAuth connections.
- [Get terminal settings](https://smallworld.sh/docs/get-terminal-settings.md): Read the workspace’s command and approval time limits.
- [Get a World’s integration](https://smallworld.sh/docs/get-world-integration-configuration.md): Read an integration’s assignment and policies for a World.
- [List integration configurations](https://smallworld.sh/docs/list-integration-configurations.md): Read the configuration catalog for all integrations.
- [List a World’s integrations](https://smallworld.sh/docs/list-world-integration-configuration.md): Read the integration assignments and effective tool policies for a World.
- [Reset a World runtime override](https://smallworld.sh/docs/remove-world-capability.md): Restore a runtime capability to the workspace default.
- [Reset a World’s integration gate](https://smallworld.sh/docs/remove-world-integration-configuration.md): Remove the World gate override and restore its inherited state.
- [Set the app profile](https://smallworld.sh/docs/save-app-profile.md): Replace the branding used for new OAuth connections.
- [Set a workspace tool default](https://smallworld.sh/docs/save-workspace-tool-default.md): Set a tool’s default policy for your workspace.
- [Set a World runtime override](https://smallworld.sh/docs/save-world-capability.md): Explicitly enable or disable a runtime capability for one World.
- [Set a World’s integration gate](https://smallworld.sh/docs/save-world-integration-configuration.md): Assign or disable an integration in a World.
- [Update integration configuration](https://smallworld.sh/docs/update-integration-configuration.md): Activate an integration, choose its authentication mode, assign Worlds, or update tool defaults.
- [Update a provider OAuth app](https://smallworld.sh/docs/update-integration-oauth-app.md): Save your provider OAuth client, optionally together with activation, World assignment, and tool defaults.
- [Update terminal settings](https://smallworld.sh/docs/update-terminal-settings.md): Change the workspace’s command or approval time limit.
- [Update runtime capability defaults](https://smallworld.sh/docs/update-workspace-capabilities.md): Set the workspace defaults for Python and JavaScript.

## API: Custom integrations

- [Create a custom integration](https://smallworld.sh/docs/create-custom-integration.md): Create and enable a new custom integration and its selected World switches.
- [Create custom draft credentials](https://smallworld.sh/docs/create-custom-integration-draft.md): Obtain signing credentials for testing an unsaved integration without persisting it.
- [Delete a custom integration](https://smallworld.sh/docs/delete-custom-integration.md): Delete the integration, its tools, policies, World switches, and hooks.
- [Read a custom integration](https://smallworld.sh/docs/get-custom-integration.md): Read a saved custom integration's configuration.
- [List custom integrations](https://smallworld.sh/docs/list-custom-integrations.md): List the workspace's custom HTTP tool integrations.
- [Rename a custom command](https://smallworld.sh/docs/rename-custom-integration.md): Move a custom integration and its configuration to a new command key.
- [Rotate a custom signing secret](https://smallworld.sh/docs/rotate-custom-integration-secret.md): Replace the signing secret immediately and return it once.
- [Send a custom test call](https://smallworld.sh/docs/test-custom-integration.md): Send a real signed tool call using a saved integration's configuration.
- [Run a custom draft command](https://smallworld.sh/docs/test-custom-integration-draft.md): Run a terminal command against unsaved custom tool definitions.
- [Update a custom integration](https://smallworld.sh/docs/update-custom-integration.md): Edit fields of a custom integration. Omitted fields retain their current values.
- [Validate custom setup settings](https://smallworld.sh/docs/validate-custom-integration-settings.md): Check supplied setup fields independently without saving or making an endpoint call.
- [Validate custom tool definitions](https://smallworld.sh/docs/validate-custom-integration-tools.md): Check pasted tool definitions without saving or calling your endpoint.

## API: MCP integrations

- [Acknowledge MCP tool changes](https://smallworld.sh/docs/acknowledge-mcp-tool-changes.md): Acknowledge the current tool descriptions and schemas so the changes notice clears.
- [Register an MCP server](https://smallworld.sh/docs/create-mcp-integration.md): Save a remote MCP integration after detection and setup, or as an inactive draft.
- [Delete an MCP registration](https://smallworld.sh/docs/delete-mcp-integration.md): Delete the server registration, policies, switches, hooks, connections, connect sessions, OAuth app, and stored OAuth registrations.
- [Detect an MCP server](https://smallworld.sh/docs/detect-mcp-integration.md): Inspect a server URL and reserve a workspace-bound integration ID for setup.
- [Inspect MCP OAuth metadata](https://smallworld.sh/docs/detect-mcp-oauth.md): Inspect an MCP server's advertised OAuth settings, optionally using an issuer override.
- [Read a registered MCP server](https://smallworld.sh/docs/get-mcp-integration.md): Read a registered MCP server's configuration and current setup status.
- [List registered MCP servers](https://smallworld.sh/docs/list-mcp-integrations.md): List remote MCP servers registered in this workspace, including drafts.
- [Rename an MCP command](https://smallworld.sh/docs/rename-mcp-integration.md): Move an MCP integration's configuration and connected accounts to a new command key.
- [Search the MCP Registry](https://smallworld.sh/docs/search-mcp-registry.md): Search the cached remote-server catalog from the official MCP Registry.
- [Update an MCP registration](https://smallworld.sh/docs/update-mcp-integration.md): Edit the name, description, OAuth scopes, or issuer override of a saved MCP integration.
- [Verify an unsaved MCP setup](https://smallworld.sh/docs/verify-mcp-setup.md): Explicitly check a stable MCP setup before saving it.
- [Verify a saved MCP setup](https://smallworld.sh/docs/verify-saved-mcp-setup.md): Retry verification using the saved integration and its saved OAuth app credentials.

## API: Tool hooks

- [Create a verified hook](https://smallworld.sh/docs/create-tool-hook.md): Activate the exact hook configuration that returned a valid signed setup response.
- [Create hook draft credentials](https://smallworld.sh/docs/create-tool-hook-draft.md): Generate credentials for configuring a hook endpoint before activation.
- [Delete a hook](https://smallworld.sh/docs/delete-tool-hook.md): Remove the hook so subsequent tool calls no longer consult it.
- [List tool hooks](https://smallworld.sh/docs/list-tool-hooks.md): List all global and integration-scoped hooks in the workspace.
- [Rotate a hook signing secret](https://smallworld.sh/docs/rotate-tool-hook-secret.md): Replace a hook's signing secret immediately and return the new value once.
- [Send a saved hook test](https://smallworld.sh/docs/test-tool-hook.md): Send one signed sample request using a saved hook's endpoint and secret.
- [Test a hook draft](https://smallworld.sh/docs/test-tool-hook-draft.md): Send one signed test request and obtain proof of a valid hook response before creation.
- [Update a hook](https://smallworld.sh/docs/update-tool-hook.md): Edit a saved hook's endpoint URL or timeout while retaining its scope and secret.

## API: Executions

- [Execute a command](https://smallworld.sh/docs/execute-command.md): Run a Bash command in a World. The request answers as soon as the command finishes or needs an approval, so most commands return their result here; one that still runs after 30 seconds answers with status running. Reuse a session to…
- [Get an execution](https://smallworld.sh/docs/get-execution.md): Read execution state, output, and the exact tool calls made by the command. While the command runs, the request is held until it finishes or needs an approval, for at most 30 seconds; an execution that waits for an approval answers at once.
- [Download an execution output](https://smallworld.sh/docs/get-execution-output.md): Fetch the exact bytes selected by view during an execution.

## API: Sessions

- [List a session's executions](https://smallworld.sh/docs/list-session-executions.md): Read a session's executions, newest first, one page at a time. Useful for a tool call hook that needs more of the session than its request carries.
- [List a session's tool calls](https://smallworld.sh/docs/list-session-tool-calls.md): Read every tool call of a session, newest first, one page at a time, with each one's executionId.

## API: Tools

- [List a user's World tools](https://smallworld.sh/docs/list-tools.md): Load the integration commands, runtimes, and mounts available to a represented user in a World, for your agent's context.

## API: Tool approvals

- [Approve a tool call](https://smallworld.sh/docs/approve-tool-call.md): Approve the exact pending invocation and let its execution continue.
- [Deny a tool call](https://smallworld.sh/docs/deny-tool-call.md): Deny the exact pending invocation before it reaches the provider.
- [List tool approvals](https://smallworld.sh/docs/list-tool-approvals.md): List pending approvals or tool-call history, optionally scoped to a session or execution.
- [Respond to a provider approval](https://smallworld.sh/docs/respond-to-provider-approval.md): Submit the person's choice for the provider prompt currently attached to a pending tool call.

## API: Tool policies

- [Remove a group override](https://smallworld.sh/docs/delete-group-tool-policy.md): Remove a group's override, so the tool follows the member's own override, or the World or workspace policy, again.
- [Remove a user override](https://smallworld.sh/docs/delete-user-tool-policy.md): Remove a user's override, such as a remembered Allow, so the tool follows the World or workspace policy again.
- [Remove a World override](https://smallworld.sh/docs/delete-world-tool-policy.md): Remove a World's override, so the tool follows the workspace policy again.
- [Get a group's integration switch](https://smallworld.sh/docs/get-group-integration.md): Read whether a group leaves an integration available to its sessions.
- [List a group's overrides](https://smallworld.sh/docs/list-group-tool-policies.md): List the tool policy overrides a group sets for its members, across all integrations.
- [List workspace tool policies](https://smallworld.sh/docs/list-tool-policies.md): Read the workspace policy of every tool of every integration in one call.
- [List a user's overrides](https://smallworld.sh/docs/list-user-tool-policies.md): List a represented user's tool policy overrides across all integrations, including Allows remembered from approvals.
- [List a World's overrides](https://smallworld.sh/docs/list-world-tool-policies.md): List the tool policy overrides a World sets for every user in it, across all integrations.
- [Turn an integration off for a group](https://smallworld.sh/docs/set-group-integration.md): Turn an integration off for a group's sessions, or let it follow the workspace and the World again.
- [Set a group override](https://smallworld.sh/docs/set-group-tool-policy.md): Set one tool's policy for every call in a group's sessions.
- [Set a user override](https://smallworld.sh/docs/set-user-tool-policy.md): Set one tool's policy for a represented user in every World.
- [Set a World override](https://smallworld.sh/docs/set-world-tool-policy.md): Set one tool's policy for every user in a World.

## API: Integrations

- [List integrations](https://smallworld.sh/docs/list-integrations.md): List integration options your application can offer its represented users.

## API: Connect sessions

- [Confirm a connect session](https://smallworld.sh/docs/confirm-connect-session.md): Activate credentials held by a session created with requireConfirmation: true.
- [Create a connect session](https://smallworld.sh/docs/create-connect-session.md): Create a hosted flow for a user to authorize an integration or enter its API-key credentials.
- [Create a group connect session](https://smallworld.sh/docs/create-group-connect-session.md): Create a hosted flow that connects one account for a whole group, through OAuth consent or API-key entry.
- [Get a connect session](https://smallworld.sh/docs/get-connect-session.md): Read the authoritative state of a user's or a group's hosted connection attempt.

## API: Connections

- [Disconnect an integration](https://smallworld.sh/docs/delete-connection.md): Disconnect a represented user's own account from an integration.
- [Disconnect a group integration](https://smallworld.sh/docs/delete-group-connection.md): Disconnect a group's own account from an integration.
- [Get a connection](https://smallworld.sh/docs/get-connection.md): Read the connection a user's calls use for an integration: their own, or the connection of the group their session acts for.
- [Get a group connection](https://smallworld.sh/docs/get-group-connection.md): Read a group's own connection state for an integration.
- [List a user's connections](https://smallworld.sh/docs/list-connections.md): List the account a represented user's calls use for each integration: their own, or the account of the group their session acts for.
- [List a group's connections](https://smallworld.sh/docs/list-group-connections.md): List a group's own connected accounts and accounts that need reauthorization.
- [Save API-key credentials](https://smallworld.sh/docs/save-connection.md): Validate and save API-key credentials your backend collected for a represented user.
- [Save group API-key credentials](https://smallworld.sh/docs/save-group-connection.md): Validate and save API-key credentials your backend collected for a group.

## API: Users

- [Create or get a user](https://smallworld.sh/docs/create-user.md): Register your application’s user ID. Repeating this request returns the same user without changing their details.
- [Delete a user](https://smallworld.sh/docs/delete-user.md): Delete a represented user and their associated data.
- [Get a user](https://smallworld.sh/docs/get-user.md): Read a represented user by your application's user ID.
- [Update a user](https://smallworld.sh/docs/update-user.md): Update the email metadata of an existing represented user.

## API: Groups

- [Move a user to a group](https://smallworld.sh/docs/add-group-user.md): Move a represented user into a group: a user with no group joins it, and a user in one other group leaves that group for this one. An unknown user is created.
- [Add a user to a group](https://smallworld.sh/docs/add-user-group.md): Add a represented user to a group and keep their other groups. An unknown user is created.
- [Create a group](https://smallworld.sh/docs/create-group.md): Register a group of users who can share connections. Repeating this request returns the same group without changing it.
- [Delete a group](https://smallworld.sh/docs/delete-group.md): Delete a group with its memberships, connections, tool overrides, and mounts. Its members stay and keep their other groups.
- [Get a group](https://smallworld.sh/docs/get-group.md): Read a group by your application's group ID, including a page of its users.
- [List groups](https://smallworld.sh/docs/list-groups.md): List your workspace's groups, one page at a time.
- [Remove a user from a group](https://smallworld.sh/docs/remove-group-user.md): Remove a represented user from one group, if they still belong to it. Their other memberships stay.
- [Update a group](https://smallworld.sh/docs/update-group.md): Set or remove a group's display name.

## API: Mounts

- [Create a mount](https://smallworld.sh/docs/create-mount.md): Create a folder that is mounted into the terminal of every user in the workspace, of one group's members, or of one user.
- [Create a mount folder](https://smallworld.sh/docs/create-mount-folder.md): Create a folder in a mount, with any missing parent folders. Send no body.
- [Delete a mount](https://smallworld.sh/docs/delete-mount.md): Delete a mount with its files and its change log.
- [Delete a mount file or folder](https://smallworld.sh/docs/delete-mount-path.md): Delete a file, or a folder with everything inside it, from a mount.
- [Get a mount](https://smallworld.sh/docs/get-mount.md): Read a mount's path, scope, target, description, settings, and size.
- [List a mount's files](https://smallworld.sh/docs/list-mount-files.md): List every file and folder in a mount.
- [List mounts](https://smallworld.sh/docs/list-mounts.md): List your workspace's mounts, one page at a time, optionally only those of one scope, group, or user.
- [List a user's mounts](https://smallworld.sh/docs/list-user-mounts.md): List every mount that reaches a user in a session for one of their groups, and which of them are mounted where paths overlap.
- [Read a mount file](https://smallworld.sh/docs/read-mount-file.md): Read one file of a mount, with its content.
- [Update a mount](https://smallworld.sh/docs/update-mount.md): Change a mount's path, scope, target, description, or settings. Its files stay.
- [Write a mount file](https://smallworld.sh/docs/write-mount-file.md): Create or replace one file of a mount, creating any missing parent folders.
