Request
Basic information
| Field | Value |
|---|---|
| HTTP URL | https://api.dingtalk.io/v2.0/wiki/mineWorkspaces |
| HTTP Method | GET |
| Supported app types | appType-Internal app appType-Third-party enterprise app |
| Required permissions | permission-Wiki.Workspace.Read-Knowledge Base read permission |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
| x-acs-dingtalk-access-token | String | Yes | The access credential for calling this API. Obtain it as follows: - For an internal app, call the Get the access token of an internal app API. - For a third-party enterprise app, call the Get the access token of an organization that authorized the third-party app API. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| operatorId | String | Yes | The unionId of the operator. |
Request example
HTTPResponse
Response body
| Name | Type | Description |
|---|---|---|
| workspace | Object | The Knowledge Base. |
| workspaceId | String | The Knowledge Base ID (spaceUuid). |
| corpId | String | The organization ID to which the Knowledge Base belongs. |
| teamId | String | The ID of the Knowledge Group to which the Knowledge Base belongs. Empty if the Knowledge Base does not belong to any Knowledge Group. |
| rootNodeId | String | The root node ID (root dentryUuid). |
| name | String | The Knowledge Base name. |
| type | String | The Knowledge Base type. Enum values: - TEAM: Knowledge Base - PERSONAL: My Docs |
| description | String | The Knowledge Base description. |
| url | String | The URL to access the Knowledge Base. |
| icon | Object | The Knowledge Base icon. |
| type | String | The icon type. Enum values: - URL: link - EMOJI: emoji icon |
| value | String | The icon value: - When type is URL, returns the icon link. - When type is EMOJI, returns the Unicode value of the emoji icon. |
| cover | String | The cover URL of the Knowledge Base. |
| creatorId | String | The userId of the Knowledge Base creator. |
| modifierId | String | The userId of the Knowledge Base modifier. |
| createTime | String | The created time of the Knowledge Base. |
| modifiedTime | String | The modified time of the Knowledge Base. |
| permissionRole | String | The permission role of the operator on the Knowledge Base. Enum values: - OWNER: Owner - MANAGER: Manager - EDITOR: Editor - DOWNLOADER: Viewer with download permission - READER: View-only - NONE: No permission |
Response body example
Error codes
If an error occurs when you call this API, locate the solution in the Global error codes document based on the error message.| HttpCode | Error code | Error message | Description |
|---|---|---|---|
| 400 | paramError | %s | Parameter error. |
| 403 | permissionDenied | %s | The current user does not have permission for this action. |
| 500 | systemError | %s | The service is busy. Try again later. |
| 500 | unknownError | Unknown Error | Unknown error. |
| 503 | operationTimeout | %s | Request timed out. |