Skip to main content

GetGeneratedContent

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.
ActionAccess levelResource typeCondition keyDependent action
aimiaobi:GetGeneratedContentget
*All Resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample
AgentKeystringYes

Workspace ID: AgentKey

xxxxx_p_efm
IdlongYes

Document ID

1

Response elements

NameTypeDescriptionExample
object

Response

Codestring

Status code

NoData
Dataobject

Business data

Contentstring

Rich text content

Hangzhou Asian Games
ContentDomainstring

Content generation domain. Valid values: media (news) and government (government affairs)

media
ContentTextstring

Plain text content

Hangzhou Asian Games
CreateTimestring

Creation time

2024-01-04 11:46:07
CreateUserstring

Creator

"1"
DeviceIdstring

Device ID

xxx
Idlong

Document ID

86
KeywordListarray

Keywords

KeywordListstring

Keyword

Viewpoint
Keywordsstring

Keywords (string format)

[\"teacher\",\"rural\"]
Promptstring

Prompt used for the last generation

Write an xxx article
TaskIdstring

Session task ID

3f7045e099474ba28ceca1b4eb6d6e21
Titlestring

Title

Hangzhou Asian Games
UpdateTimestring

Update time

2024-01-04 11:46:07
UpdateUserstring

Updater

"1"
Uuidstring

UUID for traceability

0961a514-2e26-4aa6-b22b-f592d145fe47
IgnoreContentAuditWordsstring

List of words ignored during content audit (JSON string)

"[{}]"
HttpStatusCodeinteger

HTTP status code

200
Messagestring

Error message

success
RequestIdstring

Request ID

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

Indicates whether the request succeeded: true indicates success, and false indicates failure

true

Examples

Success response JSON format
{
  "Code": "NoData",
  "Data": {
    "Content": "杭州亚运会",
    "ContentDomain": "media",
    "ContentText": "杭州亚运会",
    "CreateTime": "2024-01-04 11:46:07",
    "CreateUser": 1,
    "DeviceId": "xxx",
    "Id": 86,
    "KeywordList": [
      "观点"
    ],
    "Keywords": "[\\\"教师\\\",\\\"乡村\\\"]",
    "Prompt": "创作xxx文章",
    "TaskId": "3f7045e099474ba28ceca1b4eb6d6e21",
    "Title": "杭州亚运会",
    "UpdateTime": "2024-01-04 11:46:07",
    "UpdateUser": 1,
    "Uuid": "0961a514-2e26-4aa6-b22b-f592d145fe47",
    "IgnoreContentAuditWords": [
      {}
    ]
  },
  "HttpStatusCode": 200,
  "Message": "success",
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Success": true
}

Error codes

Visit the Error Center to view more error codes.