logo
On this page

GetAgentInstanceMsgList

POST

https://aigc-aiagent-api.zegotech.cn/

This interface is used to obtain the message list used as context when interacting with the AI agent instance.

Request

Query Parameters

    Action stringrequired

    Possible values: [GetAgentInstanceMsgList]

    API Prototype Parameter

    https://aigc-aiagent-api.zegotech.cn?Action=GetAgentInstanceMsgList

    AppId uint32required

    The unique Application ID assigned to your project by ZEGOCLOUD. Get it from the ZEGOCLOUD Admin Console.

    SignatureNonce stringrequired

    Random string.

    Timestamp int64required

    Unix timestamp, in seconds. The maximum allowed error is 10 minutes.

    Signature stringrequired

    Signature, used to verify the legitimacy of the request. Refer to Signing the requests for how to generate an API request signature.

    SignatureVersion stringrequired

    Possible values: [2.0]

    Signature version number, default value is 2.0.

Body

required
    AgentInstanceId stringrequired

    The unique identifier of the AI agent instance, obtained through the response parameters of the Create AI Agent Instance interface.

Responses

Success
Schema
    Code integer

    Return code. 0 indicates success, other values indicate failure. For more information on error codes and response handling recommendations, please refer to Return Codes.

    Message string

    Explanation of the request result

    RequestId string

    Request ID

    Data object
    Total integer

    The total number of messages used as context

    MessageList object[]
    Message list
  • Array[
  • Role stringrequired

    Possible values: [user, assistant]

    The role of the message sender:

    • user: User
    • assistant: AI agent
    Content stringrequired

    Message content

  • ]
curl -L -X POST 'https://aigc-aiagent-api.zegotech.cn/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
1
Copied!
Request
Collapse all
Base URL
https://aigc-aiagent-api.zegotech.cn
Unified access address (no regional distinction)
Parameters
queryrequired
queryrequired
queryrequired
queryrequired
queryrequired
queryrequired
Bodyrequired
{
"AgentInstanceId": "1907755175297171456"
}
RESPONSEClear

Click the "Send" button above and see the response here!

Previous

Interrupt Agent Instance

Next

Reset Agent Instance Context

On this page

Back to top