Skip to main content

ListGeneratedContents

Retrieve a list of documents: Query the history of articles created in MiaoBi.

Debug

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples. Debug

Authorization information

The following table describes the authorization information for this API. You can use it in the Action element of RAM policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:
  • Operation: refers to the specific permission point.
  • Access level: refers to the access level of each operation. Valid values: Write, Read, or List.
  • Resource type: refers to the resource types supported for authorization in the operation. Details are as follows:
    • Required resource types are marked with a preceding asterisk (*).
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: refers to the condition keys defined by the cloud service itself.
  • Related action: refers to other permissions required to successfully perform the operation. The caller must have the permissions of all related actions for the operation to succeed.
OperationAccess levelResource typeCondition keyRelated action
aimiaobi:ListGeneratedContentslist
*All resources
*
    None
None

Request parameters

ParameterTypeRequiredDescriptionExample
AgentKeystringYes

Workspace ID: AgentKey

xxxxx_p_efm
TaskIdstringNo

Task ID

Note By default, you do not need to specify TaskId. The system generates it automatically. When subsequent tasks use the same TaskId, those tasks belong to the same conversation.
task-03d46184ee7d8749
StartTimestringNo

Start time

2024-01-04 11:46:07
EndTimestringNo

End time

2024-01-04 11:46:07
TitlestringNo

Title text

Hangzhou Asian Games
QuerystringNo

Search keyword: supports fuzzy search on titles and body text

Search Query
ContentDomainstringNo

Content domain (classification of creation types)

  • media: Media writing
  • government: Government document writing
  • office: Office writing
  • market: Marketing writing
  • custom: Custom writing
  • commentGenerate: Opinion generation
Valid values:
  • market: Marketing writing.
  • government: Government.
  • custom: Custom writing.
  • media: Media.
  • office: Office writing.
  • commentGenerate: Opinion generation.
media
CurrentintegerNo

Page number

1
SizeintegerNo

Number of items per page: 10 by default

10
DataTypestringNo

Data type filter

  • plainText: Plain text
  • richText: Rich text
  • html: Web page
  • pdf: PDF
  • word: Word
  • excel: Excel
  • csv: CSV
  • image: Image
  • video: Video
  • audio: Audio
plainText

Response parameters

NameTypeDescriptionExample
object

Response

Codestring

Status code

NoData
Currentinteger

Page number

1
Dataarray<object>

Document list

Dataobject

Document

Contentstring

Content: rich text

Hangzhou Asian Games
ContentDomainstring

Content domain (classification of creation types)

  • media: Media writing
  • government: Government document writing
  • office: Office writing
  • market: Marketing writing
  • custom: Custom writing
  • commentGenerate: Opinion generation
media
ContentTextstring

Content: plain text

Hangzhou Asian Games
CreateTimestring

Creation time

2024-01-04 11:46:07
CreateUserstring

Creator

"123"
DeviceIdstring

Device ID

xxx
Idlong

Document unique ID

10
KeywordListarray

Keywords

KeywordListstring

Keyword

Opinion
Keywordsstring

Keywords (string)

Opinion
Promptstring

Prompt used for the last generation

Write xxx article
TaskIdstring

Conversation task ID

3f7045e099474ba28ceca1b4eb6d6e21
Titlestring

Title

Hangzhou Asian Games
UpdateTimestring

Update time

2024-01-04 11:46:07
UpdateUserstring

Updater

"1111"
Uuidstring

UUID traceability unique ID

xxx
FileKeystring

File unique ID

oss://default/oss-bucket-name/aimiaobi/2021/07/01/1625126400000/1.docx
FileAttrobject

File attributes

FileNamestring

File name

homedepothp.txt
Widthinteger

Video width

800
TmpUrlstring

Temporary access URL for the video file. Expires in 1 hour.

http://www.example.com/xxx.mp4
Heightinteger

Video height

500
HttpStatusCodeinteger

HTTP status code

200
Messagestring

Error message

success
RequestIdstring

Request ID

1813ceee-7fe5-41b4-87e5-982a4d18cca5
Sizeinteger

Number of records per page

10
Successboolean

Whether the request is successful: true indicates success, and false indicates failure

true
Totalinteger

Total number of records

100

Examples

Normal response example JSON format
{
  "Code": "NoData",
  "Current": 1,
  "Data": [
    {
      "Content": "Hangzhou Asian Games",
      "ContentDomain": "media",
      "ContentText": "Hangzhou Asian Games",
      "CreateTime": "2024-01-04 11:46:07",
      "CreateUser": 123,
      "DeviceId": "xxx",
      "Id": 10,
      "KeywordList": [
        "Opinion"
      ],
      "Keywords": "Opinion",
      "Prompt": "Write xxx article",
      "TaskId": "3f7045e099474ba28ceca1b4eb6d6e21",
      "Title": "Hangzhou Asian Games",
      "UpdateTime": "2024-01-04 11:46:07",
      "UpdateUser": 1111,
      "Uuid": "xxx",
      "FileKey": "oss://default/oss-bucket-name/aimiaobi/2021/07/01/1625126400000/1.docx",
      "FileAttr": {
        "FileName": "homedepothp.txt",
        "Width": 800,
        "TmpUrl": "http://www.example.com/xxx.mp4",
        "Height": 500
      }
    }
  ],
  "HttpStatusCode": 200,
  "Message": "success",
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Size": 10,
  "Success": true,
  "Total": 100
}

Error codes

Visit the Error Center to view more error codes.