Retrieve the list of materials from the Material Library.
Debug
You can call this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful call, OpenAPI Explorer can automatically generate SDK code examples.
Debug
Authorization information
The following table describes the authorization information of the API. You can use it in the Action element of a RAM permission policy statement to grant a RAM user or RAM role the permission to call this API. Details:
- Operation: the specific permission.
- Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization in the operation. Details:
- Required resource types are marked with a leading *.
- For operations that do not support resource-level authorization, All Resources is used.
- Condition key: the condition keys defined by the cloud service itself.
- Dependent operation: other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent operations for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Dependent operation |
|---|---|---|---|---|
| aimiaobi:ListMaterialDocuments | list | *All Resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| AgentKey | string | Yes | Unique identifier for the workspace: AgentKey | 33a2658aaabf4c24b45d50e575125311_p_beebot_public |
| Query | string | No | Supports comprehensive queries for title, content, and content. | cat |
| Id | long | No | Material primary key ID | 69 |
| Title | string | No | Performs a full-text search on material titles | News title |
| DocType | string | No | Document type (html: web page, plainText: plain text, image: image, pdf: pdf, word: word, excel: excel, csv: csv, jsonLine: jsonLine) | jsonLine |
| DocTypeList | array | No | Document type list (html: web page, plainText: plain text, image: image, pdf: pdf, word: word, excel: excel, csv: csv, jsonLine: jsonLine) | |
| DocTypeList | string | No | File type object. | html |
| Content | string | No | Full-text search of document content | News content |
| ShareAttr | integer | No | Share property: 0: personal private, 1: shared within the workspace | 1 |
| Keywords | array | No | Document keywords | |
| Keyword | string | No | Keyword | Keyword |
| CreateTimeStart | string | No | Creation time - start range. Format: yyyy-MM-dd HH:mm:ss | 2023-02-19 07:28:11 |
| CreateTimeEnd | string | No | Creation time - end range. Format: yyyy-MM-dd HH:mm:ss | 2023-03-18 02:00:00 |
| UpdateTimeStart | string | No | Update time - start range. Format: yyyy-MM-dd HH:mm:ss | 2023-03-18 02:00:00 |
| UpdateTimeEnd | string | No | Update time - end range. Format: yyyy-MM-dd HH:mm:ss | 2023-03-18 03:00:00 |
| GeneratePublicUrl | boolean | No | Whether to generate a public URL for the file | true |
| Current | integer | No | Current page number | 1 |
| Size | integer | No | Number of items per page: default 10 | 10 |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | Returns the paginated list of materials | ||
| Code | string | Status code | DataNotExists |
| Current | integer | Current page number | 1 |
| Data | array<object> | List object | |
| Data | object | Material object | |
| Author | string | Author | Author |
| CreateTime | string | Creation time | 2023-03-18 02:00:00 |
| CreateUser | string | Creator user ID | "1" |
| CreateUserName | string | Creator user name | Creator username |
| DocKeywords | array | Document tags used for categorization, etc. Separate different keywords with commas | |
| DocKeyword | string | Keyword | Keyword |
| DocType | string | Document type: pdf, word, url, image | |
| ExternalUrl | string | URL uploaded by an external customer, used only for record keeping | https://www.example.com |
| HtmlContent | string | Web page content | Web page content |
| Id | long | Primary key | 35 |
| PubTime | string | Publish time. Format: yyyy-MM-dd HH:mm:ss | 2023-03-18 02:00:00 |
| PublicUrl | string | Temporary externally public URL | https://www.example.com |
| ShareAttr | integer | Public property, stored by bit. The first bit indicates whether it is shared within the workspace, the second bit indicates whether it is shared within the tenant, and the third bit indicates whether it is shared within the system | 1 |
| SrcFrom | string | Document source: user_upload, search, viewpoint | user_upload |
| Summary | string | Document summary | Summary |
| TextContent | string | Parsed text content, empty for images | Document content |
| ThumbnailInBase64 | string | Base64 thumbnail for the image document type | Base64-encoded image binary data |
| Title | string | Document title | Document title |
| UpdateTime | string | Modification time | 2023-03-18 02:00:00 |
| UpdateUser | string | Modifier user ID | "1" |
| UpdateUserName | string | Modifier user name | Updater username |
| Url | string | URL where the internal document is stored. Supports multiple protocols: http://, file://, ftp://. The URL saved to internal storage when a customer uploads, kept long-term, and deleted upon expiration | https://www.example.com |
| FileKey | string | Unique file identifier | oss://default/oss-bucket-name/aimiaobi/2021/07/01/1625126400000/1.docx |
| FileAttr | object | Media file properties | |
| Duration | double | Duration. | 120 |
| FileName | string | File name | xxx.mp4 |
| Width | integer | Video width | 100 |
| MimeType | string | File MIME type | image/png |
| FileLength | long | File content length | 1048576 |
| Height | integer | Video height | 1024 |
| HttpStatusCode | integer | HTTP status code | 200 |
| Message | string | Error description | Data does not exist |
| RequestId | string | Unique request identifier | 3f7045e099474ba28ceca1b4eb6d6e21 |
| Size | integer | Number of records per page | 10 |
| Success | boolean | Whether successful: true for success, false for failure | false |
| Total | integer | Total number of records | 100 |
Examples
Success response
JSON format