Get List of SLA Policies

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

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
text
string

The text with which you want to filter the result.

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.

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
Responses
200

OK

Success Example
{
  "sla": [
    {
      "_id": "641daf3d7718f90c810429c8",
      "name": "Minimal",
      "description": "2m UI creat",
      "dueTimeInMinutes": 2,
      "_updatedAt": "2023-03-24T14:10:05.063Z"
    },
    {
      "_id": "6417f67528384134ed600dc6",
      "name": "Try",
      "description": "Based on 1 min",
      "dueTimeInMinutes": 1,
      "_updatedAt": "2023-03-20T06:00:21.736Z"
    }
  ],
  "count": 2,
  "offset": 0,
  "total": 2,
  "success": true
}
Expand All
object
sla
Array of object
object
_id
string
name
string
description
string
dueTimeInMinutes
integer
_updatedAt
string
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