curl --request GET \
--url http://localhost:3000/api/messaging/central-channels/{channelId}/messages{
"success": true,
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"text": "<string>",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": 123,
"metadata": {}
}
]
}Get messages for a channel
curl --request GET \
--url http://localhost:3000/api/messaging/central-channels/{channelId}/messages{
"success": true,
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"text": "<string>",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": 123,
"metadata": {}
}
]
}Messages retrieved successfully
Show child attributes
Unique identifier for the message
Message text content
ID of the user who sent the message
ID of the agent (if sent by agent)
ID of the room the message belongs to
Unix timestamp when the message was created
Additional message metadata
Was this page helpful?