All Products
Search
Document Center

ApsaraDB RDS:ChatMessages

Last Updated:Mar 05, 2026

Sends chat messages.

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
rdsai:ChatMessagesnone
*All Resources
*
    none
none

Request syntax

POST /v1/chat-messages HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
QuerystringYes

The operation that you want to perform. Set the value to ChatMessages.

ConversationIdstringNo

The query content.

fea7bdca-e848-44dd-b1ae-852472b8****
ParentMessageIdstringNo

The ID of the conversation.

84dc9f9b-424a-404d-9c36-35e9d000****
InputsobjectNo

The ID of the parent message.

Response parameters

ParameterTypeDescriptionExample
object

The information about the parameters.

RequestIdstring

The request ID.

FE9C65D7-930F-57A5-A207-8C396329****
Answerstring

The answer.

ConversationIdstring

The ID of the conversation.

9cbbe885-b240-4803-9d15-6781a3fd****
CreatedAtlong

The creation time of the conversation.

1763986004
MessageIdstring

The message ID.

oas8pwy2-slxw-sf98-bx83-cb2hkktl****
Modestring

The query mode.

Eventstring

The event.

MysqlIOException
Idstring

The message ID.

60b335ca-124d-4ee1-864b-de554987****
TaskIdstring

The ID of the asynchronous task.

01c3d43d-9466-4bd5-8196-4cbbce08****

Examples

Sample success responses

JSONformat

{
  "RequestId": "FE9C65D7-930F-57A5-A207-8C396329****",
  "Answer": "",
  "ConversationId": "9cbbe885-b240-4803-9d15-6781a3fd****",
  "CreatedAt": 1763986004,
  "MessageId": "oas8pwy2-slxw-sf98-bx83-cb2hkktl****",
  "Mode": "",
  "Event": "MysqlIOException",
  "Id": "60b335ca-124d-4ee1-864b-de554987****",
  "TaskId": "01c3d43d-9466-4bd5-8196-4cbbce08****"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe provided parameter is invalid.Invalid parameter.
400PermissionDeniedNo valid order found or permission denied.No valid order found or permission denied.
404UserNotFoundUser does not exist.User does not exist.
429TooManyRequestsThe current maximum concurrent requests have exceeded the threshold.The current maximum number of concurrent requests has exceeded the threshold. Purchase a AI package to increase the concurrency limit or reduce the current number of concurrent requests.

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

Change history

Change timeSummary of changesOperation
2026-02-09The Error code has changedView Change Details
2026-01-25The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedView Change Details
2025-12-23The Error code has changedView Change Details
2025-12-04The Error code has changed. The request parameters of the API has changedView Change Details
2025-12-04The Error code has changedView Change Details
2025-12-03The Error code has changedView Change Details
2025-12-03Add OperationView Change Details