Get the audit trails for an organization Run in API Explorer

GET /api/v1.0/organizations/{organizationGuid}/audit-trails

The audit trails are served in batches of less than 100 records at the time and a continuation token.

Path parameters

  • organizationGuid string(uuid) Required

Query parameters

  • continuationToken string

Responses

  • 200 application/json

    Success

    Hide response attributes Show response attributes object
    • continuationToken string | null
    • responseData array[object] | null
      Hide responseData attributes Show responseData attributes object
      • id string
      • organizationId string
      • auditEvent string
      • auditEntity string
      • auditAction string
      • coreEntity string
      • coreEntityId string(uuid)
      • contractedEntity string | null
      • contractedEntityId string(uuid) | null
      • timestamp string(date-time)
      • oldValue object | null

        Additional properties are allowed.

      • newValue object | null

        Additional properties are allowed.

      • diff array[object]
        Hide diff attributes Show diff attributes object
        • prop string
        • oldVal
        • newVal
      • author object

        Additional properties are NOT allowed.

        Hide author attributes Show author attributes object
        • authorId string(uuid)
        • authorName string
        • authorOrgId string(uuid)
        • authorOrgName string
        • ipAddress string
      • message object

        Additional properties are NOT allowed.

        Hide message attributes Show message attributes object
        • logMessage string
        • logMessageKey string | null
        • logMessageParams string | null
  • 404 application/problem+json

    Not Found

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
  • 401 application/problem+json

    Unauthorized

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
  • 403 application/problem+json

    Forbidden

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
  • 400 application/problem+json

    Bad Request

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
  • default application/problem+json

    Error

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
GET /api/v1.0/organizations/{organizationGuid}/audit-trails
curl \
 --request GET 'https://setup.adra.com/api/v1.0/organizations/{organizationGuid}/audit-trails' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "responseData": [
    {
      "id": "7d94882a-ee8e-4741-b461-4fdbc731362b",
      "diff": [
        {
          "prop": "Domain",
          "newVal": "updatedDomain@tenant.com",
          "oldVal": null
        },
        {
          "prop": "Name",
          "newVal": "The Organization",
          "oldVal": "Demo Organization"
        }
      ],
      "author": {
        "authorId": "bf5c2988-f6d8-4108-87b1-e1bdcf296d33",
        "ipAddress": "213.52.72.214",
        "authorName": "Anders Reyes",
        "authorOrgId": "e6c779ff-9401-4915-b74d-ca4b937c7de5",
        "authorOrgName": "My Organization"
      },
      "message": {
        "logMessage": "Organization updated",
        "logMessageKey": "OrganizationUpdated",
        "logMessageParams": ""
      },
      "newValue": null,
      "oldValue": null,
      "timestamp": "2024-03-15T14:48:51+00:00",
      "auditEvent": "CoreEntityChange",
      "coreEntity": "Organization",
      "auditAction": "Updated",
      "auditEntity": "Organization",
      "coreEntityId": "7eb6c145-b6d2-4d67-8e20-6f87ca942b7f",
      "organizationId": "7eb6c145-b6d2-4d67-8e20-6f87ca942b7f",
      "contractedEntity": null,
      "contractedEntityId": null
    }
  ],
  "continuationToken": "eyJWIjoyLCJSaWQiOiJ6Njk5QUx5UlYzbz0iLCJDb250aW51YXRpb24iOlt7IkZlZWRSYW5nZSI6eyJ0eXBlIjoiTG9naWNhbCBQYXJ0aXRpb24gS2V5IiwidmFsdWUiOiJbXCI3ZWI2YzE0NS1iNmQyLTRkNjctOGUyMC02Zjg3Y2E5NDJiN2ZcIl0ifSwiU3RhdGUiOnsidHlwZSI6ImNvbnRpbnVhdGlvbiIsInZhbHVlIjoiXCIxOTUxOTZcIiJ9fV19"
}
Response examples (404)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}
Response examples (401)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}
Response examples (403)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}
Response examples (400)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}
Response examples (default)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}