Get Message

Retrieve historical conversation records between a user and the assistant from a specified conversation. The number of results returned can be limited.

POST
/
get
/
message
{
  "code": 0,
  "data": {
    "message_detail_list": [
      {
        "role": "user",
        "content": "<string>",
        "create_time": "<string>",
        "update_time": "<string>"
      }
    ]
  },
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Token API_key, available in API Console > API Keys

Body

application/json
user_id
string
required

Unique identifier of the user associated with the messages being retrieved.

conversation_id
string
required

Unique identifier of the conversation associated with the messages.

message_limit_number
number
default: 6

Limits the number of messages returned, controlling the length of the message list. Defaults to 6 if not provided.

Response

application/json

Successful Response

code
number
required

API status code. See Error Code for details.

Example: 0
data
GetMessageResponseData·object
Show child attributes
message
string
required

API response message.