Skip to content

Get account audit logs

Request

This endpoint returns audit trail records generated for the current account, based on the supplied filter criteria such as modules, features, actions, users, and time range.

The results are normalized to the logged-in user’s timezone and returned in descending order of event occurrence time.

Notes:

  • Only audit records belonging to the current account are returned
  • Results are enriched with user and account metadata
  • Timestamps are converted to the logged-in user’s timezone
Query
limitinteger, (int32)
Default:100
startinteger, (int32)
Default:0
Body
cloudsArray of strings or null
featuresArray of strings or null
actionsArray of strings or null
itemsArray of strings or null
userIdsArray of strings or null, (uuid)
startTimestring or null, (date-time)
endTimestring or null, (date-time)
menusArray of strings or null
curl -i -X POST \
  'https://demozone.zlinkfm.com/RND/api/v1/auditing/audittrails?limit=100&start=0' \
  -H 'Content-Type: application/json-patch+json' \
  -d '{
    "clouds": [
      "string"
    ],
    "features": [
      "string"
    ],
    "actions": [
      "string"
    ],
    "items": [
      "string"
    ],
    "userIds": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ],
    "startTime": "2019-08-24T14:15:22Z",
    "endTime": "2019-08-24T14:15:22Z",
    "menus": [
      "string"
    ]
  }'

Responses

OK

Body
dataobject(Models.LogDetailResponseModel)
messagestring or null
isErrorboolean
messageCodeinteger, (int32)
statusstring or null
errorTypestring or null
traceidstring or null
responseDescriptionstring or null
Response
{
  "data": {
    "data": [
      {
        "action": "string",
        "module": "string",
        "feature": "string",
        "item": "string",
        "eventStartTime": "string",
        "additionalComments": "string",
        "user": {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
          "name": "string",
          "email": "string",
          "profilePic": "string",
          "status": {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "name": "string",
            "code": "string"
          },
          "responseDescription": "string"
        },
        "account": {
          "accountName": "string",
          "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
          "timeZone": {
            "timeZoneId": 0,
            "timeZoneName": "string",
            "utcOffset": 0,
            "dayLightSavingsOffset": 0,
            "uniqueId": "a1e12d74-d756-40d1-9bb3-519def353f44",
            "code": "string",
            "supportsDaylightSavingTime": true,
            "daylightName": "string"
          },
          "contactDetails": {
            "addressL1": "string",
            "addressL2": "string",
            "state": "string",
            "city": "string",
            "country": {
              "countryId": 0,
              "countryName": "string",
              "countryCode": "string"
            },
            "zip": "string",
            "phone1": "string",
            "phone2": "string",
            "fax": "string",
            "email": "string",
            "url": "string",
            "contactPerson": "string",
            "countryId": 0,
            "timezoneId": 0,
            "accountLogo": "string",
            "currency": {
              "currencyId": 0,
              "currencyName": "string",
              "currencySymbol": "string",
              "currencyCode": "string",
              "uniqueId": "a1e12d74-d756-40d1-9bb3-519def353f44"
            },
            "currencyId": 0,
            "latitude": 0.1,
            "longitude": 0.1,
            "zoomLevel": 0
          },
          "responseDescription": "string"
        }
      }
    ],
    "endDate": "string",
    "listProperties": {
      "totalCount": 0,
      "currentStart": 0,
      "currentLength": 0,
      "pageCount": 0
    }
  },
  "message": "string",
  "isError": true,
  "messageCode": 0,
  "status": "string",
  "errorType": "string",
  "traceid": "string",
  "responseDescription": "string"
}