Get paginated messages for a specific chat
const url = 'https://open-api.replyco.com/openapi/chat/pagedchatmessages/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0?page=1&count=10&asc=true';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://open-api.replyco.com/openapi/chat/pagedchatmessages/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0?page=1&count=10&asc=true' \ --header 'Authorization: Bearer <token>'Returns all messages in a live chat conversation with pagination. Messages are ordered chronologically by default.
Search capabilities:
- Message content
- Sender name
Pagination limits:
- Default page size: 50
- Maximum page size: 100
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Chat ID to retrieve messages from
Query Parameters
Section titled “Query Parameters”Page number (default: 1, min: 1)
Items per page (default: 50, min: 1, max: 100)
Search term for filtering messages
Field name to sort by
Sort order: true for ascending, false for descending (default: true)
Responses
Section titled “Responses”Returns the paginated message list
object
object
Name of customer, which message was forwarded
Market id of replied message
It could be audio, sticker, photo…
object
External marketplace-specific file identifier (if applicable)
MIME type of the file (e.g., “image/png”, “application/pdf”)
Size of the file in bytes
Name of the file including extension (e.g., “logo.png”, “document.pdf”)
Server-side path where the file is stored (internal use)
Publicly accessible URL to download/view the file
Base64-encoded file content for inline upload/download
Example
{ "totalRecords": 1, "pageSize": 50, "pagesCount": 1, "currentPage": 1, "data": [ { "id": "6d1b8f3a-4e9c-42b7-9a5d-1f8e3c6b2d70", "chatId": "2e7f4a96-8b1c-4d3e-a5f7-9c2b6e4d1a83", "text": "Hi, can I still change the delivery address for my order?", "date": "2026-10-21T08:42:00Z", "isFromCompany": false, "unread": true } ]}Invalid pagination parameters
User is not authenticated or authorized
Chat with the specified ID was not found