Audit Logs

Retrieve audit logs

Retrieves a list of audit logs filtered by Owner ID with pagination, sorting, and filtering support.

The Owner ID is derived from the token used in the request.

Logs cannot be retrieved for an Owner ID that is different to the one in the token.

Authorization

Authorization: Bearer <sso_token> or Authorization: MxToken <token>

Requires the mx:audit-logging:read scope.

get/logs

Request

  • Base URL
    https://audit-api-prod.datalab.mendix.com/v1
  • Auth
    • HTTP bearer
    • or API key in header Authorization

Query parameters

eventOutcomestring

The outcome of the event

resourceIdstring

The unique identifier for the affected resource

contextIdstring

The unique identifier for the affected resource context

contextTypestring

The type of Context

resourceTypestring

The type of resource (e.g., Company, User, Environment)

qstring

Search query

fromstring date-time

Start date filter, ISO 8601 UTC format

tostring date-time

End date filter, ISO 8601 UTC format

pageinteger

Page number for pagination

limitinteger

Maximum number of items per page. The default is 50, the maximum is 100.

sortBy'timestamp' | 'logId'

Field to sort by

sortOrder'asc' | 'desc'

Sort order

Response

Audit logs retrieved successfully

Example response

{
  "items": [
    {
      "internalService": "Backups"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.