Get all predefined messages (manager)
Query parameters
-
page
integer page number
-
per_page
integer number of items per page
-
sort
string example :to sort the predefined message by id, position or active (-id_predefined_message: descending, id_predefined_message: ascending)
Values are
id_predefined_message
,position
, oractive
. -
retrieve predefined message by content.
GET
/manager/predefined-messages
curl \
--request GET 'https://domain.tld/api/v2/manager/predefined-messages'
Response examples (200)
{
"current_page": 42,
"data": [
{}
],
"first_page_url": "string",
"from": 42,
"last_page": 42,
"last_page_url": "string",
"links": [
{
"url": "string",
"label": "string",
"active": true
}
],
"next_page_url": "string",
"path": "string",
"per_page": 42,
"prev_page_url": "string",
"to": 42,
"total": 42
}
Response examples (401)
{
"message": "Unauthorized."
}
Response examples (422)
{
"message": "field is required! (and 3 more error)",
"errors": {
"field": [
"Error message details here"
],
"additionalProperty1": [
"Error message details here"
],
"additionalProperty2": [
"Error message details here"
]
}
}