Get paginated messages for a specific thread
GET
/openapi/message/pagedthreadmessages/{threadId}
const url = 'https://open-api.replyco.com/openapi/message/pagedthreadmessages/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0?page=1&count=10&asc=false';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/message/pagedthreadmessages/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0?page=1&count=10&asc=false' \ --header 'Authorization: Bearer <token>'Returns messages for a thread with pagination support. Includes message previews optimized for display in UI.
Default sort order:
- asc=true: Oldest messages first (chronological)
- asc=false: Newest messages first (reverse chronological)
Pagination limits:
- Default page size: 50
- Maximum page size: 100
Note: This endpoint returns MessagePreviewModel which is lighter than the full message object returned by /threadMessages/{threadId}
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”threadId
required
string format: uuid
Thread ID to retrieve messages from
Query Parameters
Section titled “Query Parameters”page
integer format: int32
Page number (default: 1, min: 1)
count
integer format: int32
Items per page (default: 50, min: 1, max: 100)
asc
boolean
Sort order: true for chronological, false for reverse chronological (default: false)
Responses
Section titled “Responses”Returns the paginated message list
Media typeapplication/json
object
totalRecords
integer format: int32
pageSize
integer format: int32
pagesCount
integer format: int32
currentPage
integer format: int32
data
Array<object>
object
id
string format: uuid
text
string
messageDate
string format: date-time
sendingDate
string format: date-time
status
integer format: int32
isFromCompany
boolean
languageCode
string
failMessage
string
attachmentUrls
string
userId
string format: uuid
isDelayed
boolean
autoresponseId
string format: uuid
templateId
string format: uuid
autoresponseName
string
templateName
string
senderAddress
string
ccStr
string
bccStr
string
totalRecords
integer format: int32
translatedText
string
translatedTo
string
toneScore
number format: double
toneReason
string
cc
Array<string>
bcc
Array<string>
Example
{ "totalRecords": 2, "pageSize": 50, "pagesCount": 1, "currentPage": 1, "data": [ { "id": "4f6b2d81-9e3c-47a5-b2d0-8c1e5a7f3b69", "text": "Hi Jane, sorry to hear that. Could you send us a photo of the parcel?", "messageDate": "2026-10-20T15:12:00Z", "isFromCompany": true }, { "id": "1a9c4e72-3b5d-4e8f-a061-5d7b2c9e8f14", "text": "My parcel arrived damaged. Photo attached.", "messageDate": "2026-10-20T14:05:00Z", "isFromCompany": false } ]}Invalid pagination parameters
User is not authenticated or authorized
User does not have access to this thread
Thread with the specified ID was not found