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

# ワークスペース取得

> 下書きの原文・ファイル・リビジョン・検証結果を読み戻し。編集継続用。

**`GET`** `https://api-datahub.octoparse.com/v1/data-apps/{app_id}/workspace`

認証：APIキー必須（`Authorization: Bearer <API Key>`）。App 作者のみ。他者は `404`。

生マニフェスト、添付、リビジョン、現在の検証結果 — クライアントの「編集を続ける」再投入源。

下書きなしは `404 workspace-not-found`。通常の主経路状態（新規 App、または進行中下書きなしの公開済み）。

## リクエスト

### パスパラメータ

<ParamField path="app_id" type="string" required>
  App reference.
</ParamField>

### リクエスト例

```bash theme={null}
curl \
  -H "Authorization: Bearer $OCTOPARSE_API_KEY" \
  "https://api-datahub.octoparse.com/v1/data-apps/carol/reviews-query/workspace"
```

## レスポンス

### 200 成功

```json theme={null}
{
  "data": {
    "app_name": "probe-b",
    "app_id": "app_6dfe4e839ccf",
    "namespace": "carol",
    "manifest": "\nspec_version: \"0.2\"\nidentity:\n  app_name: probe-b\n  name: Runs list probe source\n  summary: Test app for runs list pagination and filters\n  type: data\n  version:…",
    "files": {},
    "revision": 1,
    "valid": true,
    "issues": [],
    "content_hash": "267d174fa14b05d66608cbd8315242f4b0f5b0b62a5fd94ffa852ee6cf62f978",
    "created_at": "2026-09-15T07:45:38.574191+00:00",
    "updated_at": "2026-09-15T07:45:38.574191+00:00"
  }
}
```

ペイロードは `data` に包まれます。フィールド:

<ResponseField name="app_name" type="string" required>
  App 名。
</ResponseField>

<ResponseField name="app_id" type="string" required>
  Stable app id.
</ResponseField>

<ResponseField name="namespace" type="string">
  発行者ユーザー名。
</ResponseField>

<ResponseField name="manifest" type="string" required>
  生マニフェストテキスト。
</ResponseField>

<ResponseField name="files" type="object">
  Attached files.
</ResponseField>

<ResponseField name="revision" type="integer" required>
  保存時 `expected_revision` 用の下書きリビジョン。
</ResponseField>

<ResponseField name="valid" type="boolean" required>
  検証が通ったか。
</ResponseField>

<ResponseField name="issues" type="object[]">
  Issue list.

  <Expandable title="fields">
    <ResponseField name="path" type="string" required>
      —
    </ResponseField>

    <ResponseField name="message" type="string" required>
      —
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="content_hash" type="string">
  Content hash; corresponds to a Build's `content_hash`.
</ResponseField>

<ResponseField name="created_at" type="string">
  Created time.
</ResponseField>

<ResponseField name="updated_at" type="string">
  最終保存時刻。
</ResponseField>

### エラー

| HTTP | `code`                | `category`  | Description                   |
| ---- | --------------------- | ----------- | ----------------------------- |
| 401  | `unauthorized`        | `forbidden` | API キー欠落または無効。                |
| 404  | `workspace-not-found` | `not_found` | 進行中の下書きがない。通常の主経路状態であり故障ではない。 |

エラー応答は `{"error": {code, category, message, retryable}}` です。<a href="/docs/jp/datahub/api/reference/introduction#errors">エラー</a> を参照。

## クライアントライブラリ

Python / JavaScript SDK はまだこのエンドポイントをラップしていません。REST を直接呼び出してください。
