Skip to main content
GET
/
api
/
v1
/
audit-logs
/
{log_id}
Get Audit Log
curl --request GET \
  --url https://api.example.com/api/v1/audit-logs/{log_id}
{
  "id": 123,
  "account_id": "<string>",
  "operation": "<string>",
  "table_name": "<string>",
  "record_id": "<string>",
  "column_name": "<string>",
  "user_id": "<string>",
  "user_email": "<string>",
  "user_name": "<string>",
  "occurred_at": "2023-11-07T05:31:56Z",
  "old_value": "<string>",
  "new_value": "<string>",
  "es_username": "<string>",
  "es_reason": "<string>",
  "es_timestamp": "2023-11-07T05:31:56Z",
  "ip_address": "<string>",
  "user_agent": "<string>",
  "request_id": "<string>",
  "checksum": "<string>",
  "previous_hash": "<string>",
  "extra_metadata": {}
}

Headers

authorization
string | null

Path Parameters

log_id
integer
required

Response

Successful Response

Response for a single audit log entry.

id
integer
required

Unique identifier (sequence number)

account_id
string
required

Account context (UUID)

operation
string
required

Operation type: CREATE, UPDATE, DELETE

table_name
string
required

Table/collection name

record_id
string
required

ID of the affected record

column_name
string
required

Name of the changed column

user_id
string
required

ID of user who made the change

user_email
string
required

Email of user who made the change

user_name
string
required

Name of user who made the change

occurred_at
string<date-time>
required

Timestamp of the change (UTC)

old_value
string | null

Previous value

new_value
string | null

New value

es_username
string | null

Electronic signature username

es_reason
string | null

Electronic signature reason

es_timestamp
string<date-time> | null

Electronic signature timestamp

ip_address
string | null

Client IP address

user_agent
string | null

User agent string

request_id
string | null

Correlation ID

checksum
string | null

SHA-256 hash of this entry

previous_hash
string | null

Checksum of the previous entry

extra_metadata
Extra Metadata · object

Additional metadata