Retrieves a list of messages in a specific conversation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rdsai:GetMessages |
none |
*All Resource
|
None | None |
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ConversationId |
string |
No |
The ID of the conversation. |
941c6f59-acf5-4e11-9adc-31e52e1f**** |
| FirstId |
string |
No |
The ID of the message from which to start fetching the list. Use this for pagination. |
038866af-a050-4bc5-bfad-b7bfc838**** |
| Limit |
integer |
No |
The maximum number of messages to return per page. Valid values: 1–100. Default: 100. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The unique identifier for the request. |
FE9C65D7-930F-57A5-A207-8C396329**** |
| Data |
array<object> |
A list of message objects. |
|
|
array<object> |
The details of a message. |
||
| Id |
string |
The unique identifier for the message. |
84dc9f9b-424a-404d-9c36-35e9d000**** |
| ConversationId |
string |
The unique identifier for the conversation. |
9cbbe885-b240-4803-9d15-6781a3fd**** |
| Query |
string |
The user's query. |
实例rm-bp14as9914vd3**** 磁盘使用率,是否需要扩容 |
| Answer |
string |
The AI-generated response to the query. |
您询问的实例rm-bp14as9914vd3**** 磁盘使用率为23%,暂时不需要进行扩容。如果您需要进一步查看某个实例的详细配置、性能监控或进行其他操作,请告诉我具体需求! |
| CreatedAt |
string |
The Unix timestamp (in seconds) when the message was created. |
1763986004 |
| Feedback |
string |
The user's feedback on the answer, such as "like" or "dislike". |
like |
| RetrieverResources |
array |
The resources that were retrieved to generate the answer. |
|
|
any |
A retrieved resource. |
测试字段,不用关注。 |
|
| Events |
array<object> |
||
|
object |
|||
| event |
string |
||
| answer |
string |
||
| HasMore |
boolean |
Indicates whether there are more messages to retrieve. |
true |
| Limit |
integer |
The value of the Limit parameter used for this request. |
100 |
Examples
Success response
JSON format
{
"RequestId": "FE9C65D7-930F-57A5-A207-8C396329****",
"Data": [
{
"Id": "84dc9f9b-424a-404d-9c36-35e9d000****",
"ConversationId": "9cbbe885-b240-4803-9d15-6781a3fd****",
"Query": "实例rm-bp14as9914vd3**** 磁盘使用率,是否需要扩容",
"Answer": "您询问的实例rm-bp14as9914vd3**** 磁盘使用率为23%,暂时不需要进行扩容。如果您需要进一步查看某个实例的详细配置、性能监控或进行其他操作,请告诉我具体需求!",
"CreatedAt": "1763986004",
"Feedback": "like",
"RetrieverResources": [
"测试字段,不用关注。"
],
"Events": [
{
"event": "",
"answer": ""
}
]
}
],
"HasMore": true,
"Limit": 100
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The provided parameter is invalid. | Invalid parameter. |
| 404 | UserNotFound | User does not exist. | User does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.