# 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="/files/dRWTs8KkKbHyV4whiKCy" alt="Workspace actions menu "></div>

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

![Workspace actions menu](/files/ddlTQsMH0SvPDc4aE7fj)

## 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tonic.ai/app/api/getting-the-workspace-id.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
