Skip to main content
A Workspace is the basic unit in DocFlow for organizing and isolating document processing tasks. Each workspace can contain file categories, review rule repositories, and other resources, facilitating multi-tenant or multi-project management.
This guide introduces how to use workspace-related APIs: create, list, get, update, and delete.

Create Workspace

Create a new workspace:
Request Parameters:
  • name (required): Workspace name, max length 50
  • description (optional): Workspace description, max length 200
  • enterprise_id (required): Enterprise organization ID
  • auth_scope (required): Collaboration scope, 0: Private, 1: Enterprise-wide
Response Example:

List Workspaces

Get all workspaces for the current user:
Request Parameters:
  • enterprise_id (required): Enterprise ID
  • page (optional): Page number, default is 1
  • page_size (optional): Items per page, default is 20
Response Example:

Get Workspace Details

Get detailed information about a workspace by its ID:
Request Parameters:
  • workspace_id (required): Workspace ID

Update Workspace

Update information for a specified workspace:
Request Parameters:
  • workspace_id (required): Workspace ID
  • name (required): Workspace name, max length 50
  • description (optional): Workspace description, max length 200
  • auth_scope (required): Collaboration scope, 0: Private, 1: Enterprise-wide
  • callback_url (optional): Callback URL
  • callback_retry_time (optional): Number of callback retries, range 0-3

Delete Workspace

Delete specified workspace(s) (supports batch deletion):
Request Parameters:
  • workspace_ids (required): Array of workspace IDs to delete
Deleting a workspace will also delete all resources under it (including file categories, review rule repositories, etc.). Please proceed with caution.

Next Steps