> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Clarify: Get Workspace

> Get a workspace. Clarify Get Workspace reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Get a workspace.

> [!NOTE]
>
> Tool ID: `clarify_get_workspace`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'clarify_get_workspace',
  {
    "workspace": "example"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run clarify_get_workspace --input '{
  "workspace": "example"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "data": {
      "type": "workspace",
      "id": "id_123",
      "attributes": {
        "slug": "example",
        "name": "Example",
        "organization_id": "organization_123",
        "created_at": "2026-01-15T12:00:00Z"
      }
    }
  }
}
```

Use `deepline describe clarify_get_workspace --json` for the latest machine-readable contract.

## Input reference

Returns a single workspace as a JSON:API resource, including the WorkOS organization ID used to mint an access token for it.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns a single workspace as a JSON:API resource, including the WorkOS organization ID used to mint an access token for it.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      }
    },
    "required": [
      "workspace"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.data` | `object` | Yes | — | The resource. |
| `result.data.data.type` | `"workspace"` | Yes | — | The resource type. matches the `object` path parameter. Allowed: `workspace`. |
| `result.data.data.id` | `string` | Yes | — | The unique ID of the resource. |
| `result.data.data.attributes` | `object` | Yes | — | Field values keyed by field name. available fields depend on the object’s schema. |
| `result.data.data.attributes.slug` | `string` | Yes | — | The workspace slug, the `&#123;slug&#125;` segment of the workspace URL. It never changes after creation. |
| `result.data.data.attributes.name` | `string` | Yes | — | The workspace display name. |
| `result.data.data.attributes.organization_id` | `string \| null` | Yes | — | The WorkOS organization ID that backs the workspace, used to mint an access token scoped to it. |
| `result.data.data.attributes.created_at` | `string` | Yes | — | The time the workspace was created. Format: `date-time`. |
| `result.data.data.relationships` | `object` | No | — | Related resources keyed by relationship name, present when requested via `include`. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "data": {
            "type": "object",
            "description": "The resource.",
            "properties": {
              "type": {
                "type": "string",
                "description": "The resource type; matches the `object` path parameter.",
                "enum": [
                  "workspace"
                ]
              },
              "id": {
                "type": "string",
                "description": "The unique ID of the resource."
              },
              "attributes": {
                "type": "object",
                "description": "Field values keyed by field name; available fields depend on the object’s schema.",
                "properties": {
                  "slug": {
                    "type": "string",
                    "description": "The workspace slug, the `{slug}` segment of the workspace URL. It never changes after creation."
                  },
                  "name": {
                    "type": "string",
                    "description": "The workspace display name."
                  },
                  "organization_id": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The WorkOS organization ID that backs the workspace, used to mint an access token scoped to it."
                  },
                  "created_at": {
                    "type": "string",
                    "description": "The time the workspace was created.",
                    "format": "date-time"
                  }
                },
                "required": [
                  "slug",
                  "name",
                  "organization_id",
                  "created_at"
                ],
                "additionalProperties": false
              },
              "relationships": {
                "type": "object",
                "description": "Related resources keyed by relationship name, present when requested via `include`.",
                "properties": {},
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "id",
              "attributes"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.