Get generated content. Queries the history of articles generated in MiaoBi.
Try it now
You can call this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples.
Try it now
RAM authorization
The following table describes the authorization information for this API. You can use the Action element in RAM permission policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:
- Action: the specific permission point.
- Access level: the access level of each action. Valid values: Write, Read, or List.
-
Resource type: the resource types supported for authorization in the action. Details are as follows:
- Required resource types are marked with an asterisk (*).
- For actions that do not support resource-level authorization, All Resources is used.
- Condition key: the condition keys defined by the cloud service itself.
- Dependent action: other permissions required to successfully perform the action. The caller must have the permissions of all dependent actions for the action to succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| aimiaobi:GetGeneratedContent | get | *All Resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| AgentKey | string | Yes | Workspace ID: AgentKey | xxxxx_p_efm |
| Id | long | Yes | Document ID | 1 |
Response elements
| Name | Type | Description | Example |
|---|---|---|---|
| object | Response | ||
| Code | string | Status code | NoData |
| Data | object | Business data | |
| Content | string | Rich text content | Hangzhou Asian Games |
| ContentDomain | string | Content generation domain. Valid values: media (news) and government (government affairs) | media |
| ContentText | string | Plain text content | Hangzhou Asian Games |
| CreateTime | string | Creation time | 2024-01-04 11:46:07 |
| CreateUser | string | Creator | "1" |
| DeviceId | string | Device ID | xxx |
| Id | long | Document ID | 86 |
| KeywordList | array | Keywords | |
| KeywordList | string | Keyword | Viewpoint |
| Keywords | string | Keywords (string format) | [\"teacher\",\"rural\"] |
| Prompt | string | Prompt used for the last generation | Write an xxx article |
| TaskId | string | Session task ID | 3f7045e099474ba28ceca1b4eb6d6e21 |
| Title | string | Title | Hangzhou Asian Games |
| UpdateTime | string | Update time | 2024-01-04 11:46:07 |
| UpdateUser | string | Updater | "1" |
| Uuid | string | UUID for traceability | 0961a514-2e26-4aa6-b22b-f592d145fe47 |
| IgnoreContentAuditWords | string | List of words ignored during content audit (JSON string) | "[{}]" |
| HttpStatusCode | integer | HTTP status code | 200 |
| Message | string | Error message | success |
| RequestId | string | Request ID | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
| Success | boolean | Indicates whether the request succeeded: true indicates success, and false indicates failure | true |
Examples
Success response
JSON format