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

# 获取空间列表

> 获取当前用户的所有工作空间列表



## OpenAPI

````yaml /docflow/cn/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
servers:
  - url: https://docflow.textin.com
security:
  - ApiId: []
    SecretCode: []
paths:
  /api/app-api/sip/platform/v2/workspace/list:
    get:
      tags:
        - 空间管理
      summary: 获取空间列表
      description: 获取当前用户的所有工作空间列表
      operationId: listWorkspaces
      parameters:
        - 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: 我的工作空间
        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

````