List¶
GET /api/v1/notes/list
Overview¶
List the legacy notes visible in the current workspace.
Prerequisites and Usage Steps¶
Supports filtering by name, with no pagination. Can list public notes and private notes created by the current calling identity. Favorited items come first by default, and the rest are sorted by creation time in descending order. Use the uuid of a result item to call details or export.
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or fill in: Obtain an OpenAPI Key with this operation permission from the API Key management of the target workspace. |
Query Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| search | string | Name contains match. When omitted or left blank, no filtering by name is applied. Allowed null: False Example: 巡检How to obtain or fill in: Take a keyword from the note name and pass it in URL-encoded form. |
Additional Parameter Notes¶
The data in the response is the complete list of matches; read the uuid of each item directly.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/notes/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode 'search=巡检'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.data | array<object> |
Matching notes; [] when there are no results. |
| content.data[].id | integer | Note record ID. |
| content.data[].uuid | string | Note UUID, used for querying, modifying, importing, and deleting. |
| content.data[].name | string | Note name. |
| content.data[].workspaceUUID | string | Workspace it belongs to. |
| content.data[].isPublic | integer | Visibility scope; 1 is public, 0 is only the creating identity. |
| content.data[].extend | object | Note extension configuration. |
| content.data[].status | integer | Current note status. |
| content.data[].creator | string | Creator identity ID. |
| content.data[].updator | string | ID of the most recent updater; may be empty if not updated. |
| content.data[].createAt | number | Creation time, in Unix seconds. |
| content.data[].updateAt | number | Last update time, in Unix seconds. May be -1 if not updated. |
| content.data[].deleteAt | number | Deletion time, in Unix seconds. -1 if not deleted. |
| content.data[].pos | array<object> |
Ordered reference array of charts. |
| content.data[].pos[].chartUUID | string | Chart UUID. |
| content.data[].creatorInfo | object | Creator information; an empty object if not found. |
| content.data[].updatorInfo | object | Most recent updater information; an empty object if not found. |
| content.data[].creatorInfo.uuid | string | May be provided when the corresponding identity is found. Identity identifier. |
| content.data[].creatorInfo.status | integer | May be provided when the corresponding identity is found. Account status. |
| content.data[].creatorInfo.wsAccountStatus | integer | May be provided when the corresponding identity is found. Workspace member status. |
| content.data[].creatorInfo.username | string | May be provided when the corresponding identity is found. Account login name. |
| content.data[].creatorInfo.name | string | May be provided when the corresponding identity is found. Display name. |
| content.data[].creatorInfo.iconUrl | string | May be provided when the corresponding identity is found. Avatar URL. |
| content.data[].creatorInfo.email | string | May be provided when the corresponding identity is found. Account email. An API Key identity may return its identifier. |
| content.data[].creatorInfo.mobile | string | May be provided when the corresponding identity is found. Contact information. |
| content.data[].creatorInfo.countryCode | string | May be provided when the corresponding identity is found. Country or region code of the phone number. |
| content.data[].creatorInfo.acntWsNickname | string | May be provided when the corresponding identity is found. Nickname within the workspace. |
| content.data[].updatorInfo.uuid | string | May be provided when the corresponding identity is found. Identity identifier. |
| content.data[].updatorInfo.status | integer | May be provided when the corresponding identity is found. Account status. |
| content.data[].updatorInfo.wsAccountStatus | integer | May be provided when the corresponding identity is found. Workspace member status. |
| content.data[].updatorInfo.username | string | May be provided when the corresponding identity is found. Account login name. |
| content.data[].updatorInfo.name | string | May be provided when the corresponding identity is found. Display name. |
| content.data[].updatorInfo.iconUrl | string | May be provided when the corresponding identity is found. Avatar URL. |
| content.data[].updatorInfo.email | string | May be provided when the corresponding identity is found. Account email. An API Key identity may return its identifier. |
| content.data[].updatorInfo.mobile | string | May be provided when the corresponding identity is found. Contact information. |
| content.data[].updatorInfo.countryCode | string | May be provided when the corresponding identity is found. Country or region code of the phone number. |
| content.data[].updatorInfo.acntWsNickname | string | May be provided when the corresponding identity is found. Nickname within the workspace. |
| content.data[].isFavourited | boolean | Whether the calling identity has favorited it. |
| content.declaration | object or null | Public declaration of the workspace. |
{
"code": 200,
"content": {
"data": [
{
"id": 11,
"uuid": "note_example",
"name": "生产巡检笔记",
"workspaceUUID": "wksp_example",
"isPublic": 1,
"pos": [],
"extend": {},
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"creatorInfo": {},
"updatorInfo": {},
"isFavourited": false
}
],
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Response¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Using an undeclared Query parameter or a parameter that violates the rules | Parameter parsing failed | Check the Query parameter table and examples. |