Get all records with paging
GET
/openapi/messagetranslate/paged
const url = 'https://open-api.replyco.com/openapi/messagetranslate/paged?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/messagetranslate/paged?page=1&count=10&asc=true' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”page
integer format: int32
Page number, default = 1
count
integer format: int32
Amount of elements per page, default = 10
term
string
Search text in main model fields
sort
string
Name of field to sort by
asc
boolean
True if ascending sort, false if descending, default - true
Responses
Section titled “Responses”OK
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
messageId
string format: uuid
languageCode
string
translatedText
string
isHtml
boolean
Example
{ "totalRecords": 1, "pageSize": 20, "pagesCount": 1, "currentPage": 1, "data": [ { "id": "5f7b9d1e-3a5c-4e7a-9c1e-6b8d0f2a4c6e", "messageId": "9a4e1c7b-2d3f-4b8a-8e6c-1f0a2b3c4d5e", "languageCode": "en", "translatedText": "My parcel arrived damaged. Can I get a refund?", "isHtml": false } ]}Unauthorized