# Getting the workspace ID

When using the API to perform tasks, you use the workspace ID to identify the workspace.

## Copying the workspace ID to the clipboard <a href="#workspace-id-copy-to-clipboard" id="workspace-id-copy-to-clipboard"></a>

From the Tonic Structural application, you can copy the workspace ID to the clipboard.

On the workspace management view, from the workspace actions menu, select **Copy Workspace ID**.

<div align="center"><img src="https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FfqSOKOs3k0rPzefD8mXs%2FWorkspaceHeadingOptionsMenu.png?alt=media&#x26;token=31c59129-8308-4bb2-97e9-43de3b857cb5" alt="Workspace actions menu "></div>

On **Workspaces** view, from the workspace actions menu, select **Copy ID to Clipboard**.

![Workspace actions menu](https://3378426797-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LSQCLFQ4bslJ-HYc8c3%2Fuploads%2FEq4xjOABp30OOpFQGFzV%2FWorkspaceOptionsColumn.png?alt=media\&token=3370dfc9-9a72-4fe4-b74e-72e9844a5307)

## Using the API to search for a workspace <a href="#workspace-id-api-search" id="workspace-id-api-search"></a>

You use [<mark style="background-color:blue;">**GET**</mark>**&#x20;api/workspace/search**](https://app.tonic.ai/apidocs/index.html#/Workspace/Search) to search for a workspace. You can search for workspaces based on the following:

* The workspace name
* The workspace owner
* The status of the most recent job
* The type of data connector
* Your role within the workspace
* Tag values assigned to the workspace

For each workspace, the results include the workspace ID.
