Get Settings History

Prev Next
Get
/api/v1/audit.settings

Get the list of changed settings within a specific duration of time, useful for auditing purposes. Permission required: can-audit.

Changelog

Version Description
7.5.0 Added
Header parameters
X-User-Id
stringRequired

The user ID.

ExampleCkCPNctrgCDfmWLqC
X-Auth-Token
stringRequired

The authentication token.

Example1Dd4iN_ClKn5jl-xPC36snQ4s9Zd5GZnXCQuCNSKcVE
Query parameters
start
string

Enter the start of the time period for which you want to view the changed settings. Format: DD-MM-YYYY or use the ISO string format.

Example2025-03-19T18:30:00.000Z
end
string

Enter the start of the time period for which you want to view the changed settings. Format: DD-MM-YYYY or use the ISO string format.

Example2025-03-21
settingId
string

Enter the setting ID for which you want to view the details.

ExampleSite_Url
actor

Filter the results by the user details that performed the action.

object
type
string

The type value can be one of the following:

  • The user who changed the setting
  • The system, for example, when the actor was the server itself, like when the license changes through cloud.
  • An app due to which a setting was changed.
Examplesystem
_id
string

The user or app ID that changed the setting (when the type is user or app).

Example67e3ec90xxxxxxea54bbe
username
string

The username of the user who changed the setting (when the type is user).

Examplejane.doe
ip
string

The IP address using which settings were changed (when the type is user).

Example154.123.456.225
useragent
string

The device details of the user who changed the setting (when the type is user).

ExampleMozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
reason
string

The reason of the changed setting (when the type is setting or app).

ExamplecacheValueInSettings reset
count
integer

How many items to return. Refer to the official documentation to learn more.

Example50
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
sort

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

Responses
200

OK

Success Example
{
  "events": [
    {
      "_id": "67e431efaae4c3005ea54c73",
      "t": "settings.changed",
      "ts": "2025-03-26T16:57:19.671Z",
      "actor": {
        "type": "user",
        "_id": "P2dgWPPw5veigwcdK",
        "username": "fun.abc",
        "ip": "154.113.158.225",
        "useragent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
      },
      "data": [
        {
          "key": "id",
          "value": "Omnichannel_allow_force_close_conversations"
        },
        {
          "key": "previous",
          "value": false
        },
        {
          "key": "current",
          "value": true
        }
      ],
      "ip": "154.113.158.225",
      "u": {
        "_id": "P2dgWPPw5veigwcdK",
        "username": "fun.abc"
      },
      "_updatedAt": "2025-03-26T16:57:19.671Z"
    },
    {
      "_id": "67e3ec90aae4c3005ea54bbe",
      "t": "settings.changed",
      "ts": "2025-03-26T12:01:20.322Z",
      "actor": {
        "type": "system",
        "reason": "cacheValueInSettings reset"
      },
      "data": [
        {
          "key": "id",
          "value": "Cloud_Workspace_Supported_Versions_Token"
        },
        {
          "key": "previous",
          "value": "eyJhbGciOiJSUzI1NiIsInR4MkwVVhy3JQ2fQ"
        },
        {
          "key": "current",
          "value": "eyJhbGciOiJSUz9Sw"
        }
      ],
      "ip": "0.0.0.0",
      "_updatedAt": "2025-03-26T12:01:20.322Z"
    },
    {
      "_id": "67e3ec77aae4c3005ea54bbd",
      "t": "settings.changed",
      "ts": "2025-03-26T12:00:55.126Z",
      "actor": {
        "type": "system",
        "reason": "cacheValueInSettings reset"
      },
      "data": [
        {
          "key": "id",
          "value": "Cloud_Workspace_Supported_Versions_Token"
        },
        {
          "key": "previous",
          "value": "eyJhVVhy3JQ2fQ"
        },
        {
          "key": "current",
          "value": "eyJhbGhy3JQ2fQ"
        }
      ],
      "ip": "0.0.0.0",
      "_updatedAt": "2025-03-26T12:00:55.126Z"
    },
    {
      "_id": "67e3ec63aae4c3005ea54bbc",
      "t": "settings.changed",
      "ts": "2025-03-26T12:00:35.117Z",
      "actor": {
        "type": "system",
        "reason": "cacheValueInSettings reset"
      },
      "data": [
        {
          "key": "id",
          "value": "Cloud_Workspace_Supported_Versions_Token"
        },
        {
          "key": "previous",
          "value": "eyJhbGciOhy3JQ2fQ"
        },
        {
          "key": "current",
          "value": "eyJhbGciOiy3JQ2fQ"
        }
      ],
      "ip": "0.0.0.0",
      "_updatedAt": "2025-03-26T12:00:35.117Z"
    },
    {
      "_id": "67e3ec54aae4c3005ea54bbb",
      "t": "settings.changed",
      "ts": "2025-03-26T12:00:20.098Z",
      "actor": {
        "type": "system",
        "reason": "cacheValueInSettings reset"
      },
      "data": [
        {
          "key": "id",
          "value": "Cloud_Workspace_Supported_Versions_Token"
        },
        {
          "key": "previous",
          "value": "eyJhbGciOiJyD0Cw"
        },
        {
          "key": "current",
          "value": "eyJhbwVVhy3JQ2fQ"
        }
      ],
      "ip": "0.0.0.0",
      "_updatedAt": "2025-03-26T12:00:20.098Z"
    }
  ],
  "count": 5,
  "offset": 0,
  "total": 20,
  "success": true
}
Expand All
object
events
Array of object
object
_id
string
t
string
ts
string
actor
object
type
string
reason
string
_id
string
username
string
ip
string
useragent
string
data
Array of object
object
key
string
value
OneOf
string
string
boolean
boolean
ip
string
_updatedAt
string
u
object
_id
string
username
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