Skip to content

Get all records with paging

GET
/openapi/template/paged
curl --request GET \
--url 'https://open-api.replyco.com/openapi/template/paged?page=1&count=10&asc=true' \
--header 'Authorization: Bearer <token>'
page
integer format: int32
default: 1

Page number, default = 1

count
integer format: int32
default: 10

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
default: true

True if ascending sort, false if descending, default - true

OK

Media typeapplication/json
object
totalRecords
integer format: int32
pageSize
integer format: int32
pagesCount
integer format: int32
currentPage
integer format: int32
data
Array<object>
nullable
object
id
string format: uuid
name

Template name

string
nullable
text

Text\Html body

string
nullable
attachmentUrls

Saved attachments urls in json format(leave them empty for create request)

string
nullable
inActive

Shows if tempalte is inactive

boolean
attachments

Pass here attachments to save them with template

Array<object>
nullable
object
url

Path of a file already stored by Replyco, exactly as returned by a previous API response. Provide either ‘url’ or ‘data’ for each attachment. A URL is stored as given and is never downloaded, so an external address will not produce a working attachment

string
nullable
fileName

Required. The name of the file including its extension (e.g., “invoice.pdf”, “image.jpg”). The extension decides whether the integration accepts the file, so it must be present

string
nullable
data

Base64 encoded content of a new file to upload. Provide either ‘data’ or ‘url’. Size and file type limits apply and depend on the integration the ticket belongs to

string format: byte
nullable
fileFormat
string
nullable
mimeType
string
nullable

Example

{
"totalRecords": 61,
"pageSize": 50,
"pagesCount": 2,
"currentPage": 2,
"data": [
{
"id": "6b0e3c1d-2f4a-4b8e-9d1c-7a5e3f2b1c09",
"name": "Delivery delay",
"text": "Sorry for the wait. Your parcel is on its way and should arrive within two working days.",
"inActive": false
}
]
}

Unauthorized