Query parameters
-
page integer
page number
-
per_page integer
number of items per page
-
sort string
example :to sort the chat topic by id or position (-id_chat_topic: descending, id_chat_topic: ascending)
Values are
id_chat_topic
orposition
. -
filter[chat_topic_search] string
retrieve chat topic by content.
-
filter[active] boolean
retrieve chat topic by active status.
GET /manager/chat-topics
curl \
-X GET https://domain.tld/api/v2/manager/chat-topics \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"current_page": 42,
"data": [
{
"id_chat_topic": 8,
"color": "#FF0000",
"contents": [
{
"id_i18n_content": 42,
"lang": "en_GB",
"content": "Hello"
}
],
"position": 1,
"date_insert": "2021-06-01T00:00:00Z",
"roles": [
"administrator",
"seller"
],
"date_update": "2022-06-01T00:00:00Z",
"active": true
}
],
"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."
}