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

# ワークスペース一覧を取得

> 現在のユーザーのワークスペース一覧を取得します



## OpenAPI

````yaml /docflow-global/ja/rest-api/openapi.bundle.yaml get /api/app-api/sip/platform/v2/workspace/list
openapi: 3.0.0
info:
  title: DocFlow API
  description: DocFlow REST API。ファイルアップロードとファイル処理結果の取得機能を提供します。
  version: 2.8.4
  contact:
    name: TextIn
    url: https://www.textin.ai/contact?type=27&sub_type=1
servers:
  - url: https://docflow.textin.ai
security:
  - ApiId: []
    SecretCode: []
tags:
  - name: ワークスペース管理
    description: ワークスペース関連 API
  - name: ファイルカテゴリ
    description: ファイルカテゴリ関連 API
  - name: ファイルカテゴリサンプル
    description: ファイルカテゴリサンプル関連 API
  - name: スマートレビュー
    description: スマートレビュー関連 API
  - name: 廃止済み
    description: 廃止済み API
paths:
  /api/app-api/sip/platform/v2/workspace/list:
    get:
      tags:
        - ワークスペース管理
      summary: ワークスペース一覧を取得
      description: 現在のユーザーのワークスペース一覧を取得します
      operationId: listWorkspaces
      parameters:
        - name: enterprise_id
          in: query
          description: エンタープライズ ID
          required: true
          schema:
            type: integer
            format: int64
        - name: page
          in: query
          description: ページ番号
          required: false
          schema:
            type: integer
            default: 1
            example: 1
        - name: page_size
          in: query
          description: ページサイズ
          required: false
          schema:
            type: integer
            default: 20
            example: 20
      responses:
        '200':
          description: ワークスペース一覧の取得に成功
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/CodeMessage'
                  - type: object
                    properties:
                      result:
                        type: object
                        properties:
                          total:
                            type: integer
                            description: ワークスペース総数
                            example: 100
                          page:
                            type: integer
                            description: 現在のページ番号
                            example: 1
                          page_size:
                            type: integer
                            description: ページサイズ
                            example: 20
                          workspaces:
                            type: array
                            items:
                              $ref: '#/components/schemas/Workspace'
components:
  schemas:
    CodeMessage:
      type: object
      properties:
        code:
          type: integer
          description: ステータスコード
          example: 200
        msg:
          type: string
          description: ステータス説明
      required:
        - code
        - msg
    Workspace:
      type: object
      description: ワークスペース
      properties:
        workspace_id:
          type: string
          description: ワークスペース ID（システム生成）
          example: '1234567890'
        name:
          type: string
          description: ワークスペース名
          example: My ワークスペース
        description:
          type: string
          description: ワークスペースの説明
          example: 請求書処理用のワークスペースです
        auth_scope:
          type: integer
          description: '共同利用範囲 0: 自分のみ表示 1: エンタープライズメンバーに表示'
          example: 1
          enum:
            - 0
            - 1
        manage_account_id:
          type: string
          description: ワークスペース管理者 ID
          example: admin_123456
        manage_account_name:
          type: string
          description: ワークスペース管理者名
          example: 山田太郎
        callback_url:
          type: string
          description: コールバック URL
          example: https://example.com/callback
        callback_retry_time:
          type: integer
          description: コールバック再試行回数
          example: 3
      required:
        - workspace_id
        - name
  securitySchemes:
    ApiId:
      type: apiKey
      in: header
      name: x-ti-app-id
    SecretCode:
      type: apiKey
      in: header
      name: x-ti-secret-code

````