Get List of Priorities

Prev Next
Get
/api/v1/livechat/priorities
Premium tag

Retrieves list of existing priorities. At least one of the following permissions is required:

  • manage-livechat-priorities
  • view-l-room

Changelog

Version Description
6.0.0 Added
Header parameters
X-Auth-Token
stringRequired

The authToken of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired

The userId of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ
Query parameters
offset
integer

Number of items to "skip" in the query, i.e. requests return count items, skipping the first offset items. Refer to the official documentation to learn more.

Example50
count
integer

The number of items to return. Refer to the official documentation to learn more.

Example25
sort
(object)

List of fields to order by, and in which direction. JSON object, with properties listed in desired order, with values of 1 for ascending, or -1 for descending. For example, sort = {"value": -1, "_id": 1}. Refer to the official documentation to learn more.

text
string

Filter the search result with the text.

Responses
200

OK

Success Example
{
  "priorities": [
    {
      "_id": "64007cc2fa0ed7dd905092e3",
      "i18n": "Lowest",
      "sortItem": 5,
      "dirty": false
    },
    {
      "_id": "64007cc2fa0ed7dd905092e4",
      "i18n": "Low",
      "sortItem": 4,
      "dirty": false
    },
    {
      "_id": "64007cc2fa0ed7dd905092e5",
      "i18n": "Medium",
      "sortItem": 3,
      "dirty": false
    },
    {
      "_id": "64007cc2fa0ed7dd905092e6",
      "i18n": "High",
      "sortItem": 2,
      "dirty": false
    },
    {
      "_id": "64007cc2fa0ed7dd905092e7",
      "i18n": "Highest",
      "sortItem": 1,
      "dirty": false
    }
  ],
  "count": 5,
  "offset": 0,
  "total": 5,
  "success": true
}
Expand All
object
priorities
Array of object
object
_id
string
i18n
string
sortItem
integer
dirty
boolean
count
integer
offset
integer
total
integer
success
boolean
401

Unauthorized

Authorization Error
{
  "status": "error",
  "message": "You must be logged in to do this."
}
object
status
string
message
string
403

Forbidden

Permission Error
{
  "success": false,
  "error": "User does not have the permissions required for this action [error-unauthorized]"
}
Unauthorized
{
  "success": false,
  "error": "unauthorized"
}
object
success
boolean
error
string
Tags