API Reference/Management/Audit
POST
/v1/mgmt/audit/search

Authorization

AuthorizationRequiredBearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

application/jsonRequired
fromstring
tostring
userIdsarray<string>
actionsarray<string>
devicesarray<string>
methodsarray<string>
geosarray<string>
remoteAddressesarray<string>
externalIdsarray<string>
tenantsarray<string>
noTenantsboolean
textstring
excludedActionsarray<string>
actorIdsarray<string>
sizeinteger
Format: "int32"
pageinteger
Format: "int32"
searchFieldsarray<object>
oldestFirstboolean
curl -X POST "https://api.descope.com/v1/mgmt/audit/search" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "string",
    "to": "string",
    "userIds": [
      "string"
    ],
    "actions": [
      "string"
    ],
    "devices": [
      "string"
    ],
    "methods": [
      "string"
    ],
    "geos": [
      "string"
    ],
    "remoteAddresses": [
      "string"
    ],
    "externalIds": [
      "string"
    ],
    "tenants": [
      "string"
    ],
    "noTenants": true,
    "text": "string",
    "excludedActions": [
      "string"
    ],
    "actorIds": [
      "string"
    ],
    "size": 0,
    "page": 0,
    "searchFields": [
      {
        "field": "string",
        "valArr": [
          "string"
        ],
        "valStr": "string",
        "negative": true,
        "valType": "string"
      }
    ],
    "oldestFirst": true
  }'

OK

{
  "audits": [
    {
      "ID": "string",
      "projectId": "string",
      "userId": "string",
      "action": "string",
      "occurred": "string",
      "device": "string",
      "method": "string",
      "geo": "string",
      "remoteAddress": "string",
      "externalIds": [
        "string"
      ],
      "tenants": [
        "string"
      ],
      "data": {},
      "type": "string",
      "actorId": "string"
    }
  ],
  "total": 0
}

Was this helpful?