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

# Get workspace

> Read workspace limits, usage and membership.

`get_workspace`

Read workspace limits, usage and membership.

<Note>Hosted MCP registration verified. These schemas describe the development contract; confirm supported inputs with tools/list. Generic CLI/HTTP calls require a matching development server. Configure LINKTRAIL\_API\_URL; production does not expose these command routes.</Note>

| Access          | Behavior         |
| --------------- | ---------------- |
| `projects:read` | Reads saved data |

Reading saved data does not start a verification job. Mutations can change saved records or access; the effects below apply.

## Example request

Connect through [MCP](/guides/connect-mcp), [CLI](/guides/connect-cli), or [HTTP](/guides/connect-http). Replace example identifiers with records from your workspace.

<CodeGroup>
  ```json MCP theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "get_workspace",
      "arguments": {}
    }
  }
  ```

  ```bash CLI theme={null}
  linktrail call get_workspace --args '{}'
  ```

  ```bash HTTP theme={null}
  curl "$LINKTRAIL_API_URL/v1/commands/get_workspace" \
    -H "Authorization: Bearer $LINKTRAIL_API_KEY" \
    -H 'Content-Type: application/json' \
    --data '{}'
  ```
</CodeGroup>

## Returned result

Illustrative data validated against the documented response schema. IDs and dates are examples, not a live account capture. MCP returns this data in `structuredContent` and in a text content block; generic HTTP and CLI return the JSON result directly.

```json theme={null}
{
  "workspace": {
    "id": "ws_example",
    "name": "Example workspace",
    "owner_user_id": "user_example",
    "created_at": "2026-09-13T12:00:00.000Z",
    "watch_limit": 100,
    "monthly_check_limit": 3500,
    "event_sequence": 0,
    "event_floor": 0
  },
  "membership": {
    "user_id": "user_example",
    "role": "owner",
    "project_ids": null,
    "created_at": "2026-09-13T12:00:00.000Z"
  },
  "check_budget": {
    "period": "2026-09",
    "limit": 3500,
    "reserved": 0,
    "consumed": 0,
    "remaining": 3500,
    "exhausted": false,
    "resets_at": "2026-10-01T00:00:00.000Z",
    "enforced_by": "workspace_monthly_check_limit",
    "plan_allowance_enforced": false
  },
  "usage": {
    "period": "2026-09",
    "reserved": 0,
    "consumed": 0,
    "active_watches": 0,
    "active_targets": 0
  },
  "target_limit": 100
}
```

## Input fields

Omit optional fields when you do not want to supply them. Null is accepted only where listed. Unknown input properties are rejected.

This operation accepts an empty object.

### Validation and omitted values

Workspace limits and usage describe the selected credential workspace.

## Output fields

Fields inside optional or nullable parents apply only when that parent exists. [Common schema conventions](/reference/schemas) explain evidence states, empty lists and extensions.

| Field                                  | Type           | Presence | Meaning and constraints                                                                      |
| -------------------------------------- | -------------- | -------- | -------------------------------------------------------------------------------------------- |
| `workspace`                            | object         | Required | workspace recorded for this result.                                                          |
| `workspace.id`                         | string         | Required | Resource identifier returned by the operation.                                               |
| `workspace.name`                       | string         | Required | name recorded for this result.                                                               |
| `workspace.owner_user_id`              | string         | Required | owner user id recorded for this result.                                                      |
| `workspace.created_at`                 | string         | Required | UTC timestamp when the record was created.                                                   |
| `workspace.watch_limit`                | number         | Required | watch limit recorded for this result.                                                        |
| `workspace.monthly_check_limit`        | number         | Required | monthly check limit recorded for this result.                                                |
| `workspace.event_sequence`             | number         | Required | event sequence recorded for this result.                                                     |
| `workspace.event_floor`                | number         | Required | event floor recorded for this result.                                                        |
| `membership`                           | object         | Required | membership recorded for this result.                                                         |
| `membership.workspace_id`              | string         | Optional | Workspace that owns this record.                                                             |
| `membership.user_id`                   | string         | Required | user id recorded for this result.                                                            |
| `membership.role`                      | string         | Required | role recorded for this result.                                                               |
| `membership.project_ids`               | array / null   | Optional | Accessible project identifiers; null grants access to all workspace projects.                |
| `membership.created_at`                | string         | Optional | UTC timestamp when the record was created.                                                   |
| `check_budget`                         | object         | Required | check budget recorded for this result.                                                       |
| `check_budget.period`                  | string         | Required | period recorded for this result.                                                             |
| `check_budget.limit`                   | number / null  | Required | limit recorded for this result.                                                              |
| `check_budget.reserved`                | number         | Required | reserved recorded for this result.                                                           |
| `check_budget.consumed`                | number         | Required | consumed recorded for this result.                                                           |
| `check_budget.remaining`               | number / null  | Required | Check units still available after consumed and reserved units; null if the limit is unknown. |
| `check_budget.exhausted`               | boolean / null | Required | exhausted recorded for this result.                                                          |
| `check_budget.resets_at`               | string         | Required | resets at recorded for this result.                                                          |
| `check_budget.enforced_by`             | string         | Required | enforced by recorded for this result.                                                        |
| `check_budget.plan_allowance_enforced` | boolean        | Required | plan allowance enforced recorded for this result.                                            |
| `usage`                                | object         | Required | usage recorded for this result.                                                              |
| `usage.period`                         | string         | Required | period recorded for this result.                                                             |
| `usage.reserved`                       | number         | Required | reserved recorded for this result.                                                           |
| `usage.consumed`                       | number         | Required | consumed recorded for this result.                                                           |
| `usage.active_watches`                 | number         | Required | active watches recorded for this result.                                                     |
| `usage.active_targets`                 | number         | Required | active targets recorded for this result.                                                     |
| `target_limit`                         | number         | Required | target limit recorded for this result.                                                       |

[Download input schema](/schemas/get_workspace.input.json) · [Download output schema](/schemas/get_workspace.output.json)

## Errors and retries

The command is annotated idempotent. Reuse an accepted idempotency key when the input provides one; changing the payload under a reused key can conflict.

See [error recovery](/reference/errors) for status, scope, cooldown, cursor and retry handling. Unknown observations are result data and do not establish loss.

## HTTP resource routes

These existing resource routes share the operation’s domain behavior. Their parameter placement, status and response envelope can differ from generic invocation. See [HTTP route details](/reference/http/routes).

| Method and route    | Success | Details                                                                                    |
| ------------------- | ------- | ------------------------------------------------------------------------------------------ |
| `GET /v1/workspace` | 200     | Resource response adds access:\{role,scopes,project\_ids} alongside workspace information. |

## Continue

[get\_usage](/reference/commands/get_usage) · [list\_projects](/reference/commands/list_projects)

Follow the [related workflow](/guides/connect-http), inspect [capability status](/capability-status), or return to the [command index](/reference/index).
