> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get one AuditTrailEntry

> Retrieve a single AuditTrailEntry record by its Id.

Represents a read-only log of entity creations and modifications by users or the system. Useful for troubleshooting issues or finding out when an entity was created and what modifications were made to it.

Creation entries (`AuditType = 1`) do not record the values for the individual fields. To infer the initial values, look at the first update entry for that entity and read the `OldValue` for each property.

Use `AuditTrailEntry_EntityId` to search by the integer ID of the audited record.

Not all entities are fully audited. These are the ones currently supported by the `AuditTrailEntry_EntityShortName` filter:

Charge, ContractSchedule, CoworkerBookingCredit, CoworkerContract, CoworkerExtraService, CoworkerInvoice, CoworkerLedgerEntry, CoworkerPaymentMethod, CoworkerProduct, FinancialAccount, CoworkerTask, CrmOpportunity, Booking, Checkin, Coworker, CoworkerIdentityCheck, Resource, Team, Visitor, Business, BusinessSetting, FloorPlanDesk, User.

The `AuditType` field uses the `eAuditType` enum: `1` = Create, `2` = Update, `3` = Delete.

## Authentication

<Note>
  This endpoint requires OAuth2 authentication. Include a valid bearer token in the `Authorization` header.
  The authenticated user must be a full unrestricted administrator or have the **`AuditTrailEntry-Read`** role.
</Note>

## Path Parameters

<ParamField path="id" type="integer" required>
  The Id of the AuditTrailEntry record to retrieve.
</ParamField>

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET \
    "https://spaces.nexudus.com/api/sys/audittrailentries/87654321" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/sys/audittrailentries/87654321',
    {
      headers: {
        'Authorization': 'Bearer YOUR_TOKEN'
      }
    }
  );

  const record = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://spaces.nexudus.com/api/sys/audittrailentries/87654321',
      headers={
          'Authorization': 'Bearer YOUR_TOKEN'
      }
  )

  record = response.json()
  ```
</CodeGroup>

## Response

### 200

<ResponseField name="BusinessId" type="integer">
  ID of the business linked to this record.
</ResponseField>

<ResponseField name="EntityShortName" type="string">
  Short name of the audited entity type (e.g. Coworker, Booking, Charge).
</ResponseField>

<ResponseField name="Description" type="string">
  Human-readable description of the audit trail entry.
</ResponseField>

<ResponseField name="PropertyName" type="string">
  Name of the property that was changed.
</ResponseField>

<ResponseField name="AuditType" type="integer">
  Type of audit action: 1 = Create, 2 = Update, 3 = Delete. See `eAuditType` enum values: `1` = Create, `2` = Update, `3` = Delete.
</ResponseField>

<ResponseField name="OldValue" type="string">
  Previous value of the property before the change.
</ResponseField>

<ResponseField name="NewValue" type="string">
  New value of the property after the change.
</ResponseField>

<ResponseField name="ActionBy" type="string">
  User or system account that performed the action.
</ResponseField>

<ResponseField name="EntityId" type="integer">
  Integer ID of the audited record.
</ResponseField>

<ResponseField name="Id" type="integer">
  Unique record identifier.
</ResponseField>

<ResponseField name="UniqueId" type="string">
  UUID of the record.
</ResponseField>

<ResponseField name="CreatedOn" type="string">
  Date and time the record was created (ISO 8601).
</ResponseField>

<ResponseField name="UpdatedOn" type="string">
  Date and time the record was last updated (ISO 8601).
</ResponseField>

<ResponseField name="UpdatedBy" type="string">
  Email of the user who last updated this record.
</ResponseField>

<ResponseField name="IsNew" type="boolean">
  Whether the record was recently created.
</ResponseField>

<ResponseField name="SystemId" type="string">
  External system identifier.
</ResponseField>

```json Example Response theme={null}
{
  "BusinessId": 0,
  "EntityShortName": "",
  "Description": "",
  "PropertyName": "",
  "AuditType": 0,
  "OldValue": null,
  "NewValue": null,
  "ActionBy": null,
  "EntityId": 0,
  "Id": 87654321,
  "UpdatedOn": "2025-01-15T10:30:00Z",
  "CreatedOn": "2025-01-10T08:00:00Z",
  "UniqueId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "UpdatedBy": "admin@example.com",
  "IsNew": false,
  "SystemId": null,
  "ToStringText": "AuditTrailEntry Example",
  "LocalizationDetails": null,
  "CustomFields": null
}
```
