All Products
Search
Document Center

Intelligent Media Services:ListAIAgentDialogues

Last Updated:Dec 23, 2025

Lists the dialog records of an AI agent.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ice:ListAIAgentDialoguesnone
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SessionIdstringYes

The session ID.

f27f9b9be28642a88e18****
StartTimelongYes

Specify the start of the time range to query using a UNIX timestamp accurate to milliseconds.

0
EndTimelongYes

Specify the end of the time range to query using a UNIX timestamp accurate to milliseconds.

17358082464030
PageNumberlongNo

The page number. Default value: 1.

1
PageSizeintegerNo

The number of entries per page. Default value: 20. Valid values: 1 to 100.

20
OrderstringNo

The sorting order. Valid values:

  • DESC: descending order (default)
  • ASC: ascending order
DESC

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

7B117AF5-***************
Dialoguesarray<object>

The dialog records.

dialoguesobject
DialogueIdstring

The unique ID of the dialog.

19de81b3b3d94abda22****
RoundIdstring

The ID of the conversational turn.

f27f9b9be28642a88e18****
Producerstring

The speaker. Valid values: 

  • user
  • agent
user
Textstring

The specific content.

Hello
ReasoningTextstring

The reasoning trace.

I'm thinking
Timelong

The UNIX timestamp, measured in milliseconds, which indicates the time when the message was generated.

1734511087000
Typestring

The message type. Valid values:

Voice calls:

  1. greeting: the welcome message.
  2. normal: the voice response.
  3. speech: the proactive message.

Messaging conversations:

  1. normal: the text reply.
  2. announcement: the proactive text message.
  3. custom: the custom message.
announcement
Sourcestring

The source of the message. Valid values:

chat: messaging conversations.

call: voice calls.

chat

Examples

Sample success responses

JSONformat

{
  "RequestId": "7B117AF5-***************",
  "Dialogues": [
    {
      "DialogueId": "19de81b3b3d94abda22****",
      "RoundId": "f27f9b9be28642a88e18****",
      "Producer": "user",
      "Text": "Hello",
      "ReasoningText": "I'm thinking\n",
      "AttachedFileList": [
        {
          "Url": "",
          "Id": "",
          "Format": "",
          "Type": 0,
          "Name": ""
        }
      ],
      "Time": 1734511087000,
      "Type": "announcement",
      "Source": "chat",
      "NodeId": "",
      "Extend": ""
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.