Skip to content

Read the audit log

GET
/api/v1/org/audit-log
curl --request GET \
--url https://api.aletheia-ops.com/api/v1/org/audit-log \
--header 'Authorization: Bearer <token>'

OK

Media typeapplication/json

Paginated audit-log response

object
items
Array<object>

One audit-log row (id is a string for JS-safe big integers)

object
id
string
actor_type
string
actor_id
string
actor_display
string
action
string
target_type
string
target_id
string
target_display
string
metadata
object
key
additional properties
any
request_id
string
ip
string
user_agent
string
created_at
string format: date-time
next_cursor
string
Examplegenerated
{
"items": [
{
"id": "example",
"actor_type": "example",
"actor_id": "example",
"actor_display": "example",
"action": "example",
"target_type": "example",
"target_id": "example",
"target_display": "example",
"metadata": {},
"request_id": "example",
"ip": "example",
"user_agent": "example",
"created_at": "2026-04-15T12:00:00Z"
}
],
"next_cursor": "example"
}

No valid credential was presented, or it has expired.

Media typeapplication/json
object
code
required

Stable, machine-readable identifier. Branch on this.

string
message
required

Human-readable explanation. Safe to display; do not parse.

string
Examples
{
"code": "unauthorized",
"message": "authentication required"
}

Authenticated, but not permitted to perform this action.

Media typeapplication/json
object
code
required

Stable, machine-readable identifier. Branch on this.

string
message
required

Human-readable explanation. Safe to display; do not parse.

string
Examples
{
"code": "forbidden",
"message": "you do not have permission to perform this action"
}

An unexpected failure. Diagnostic detail is logged server-side and deliberately not returned. Quote the X-Request-Id response header when reporting one.

Media typeapplication/json
object
code
required

Stable, machine-readable identifier. Branch on this.

string
message
required

Human-readable explanation. Safe to display; do not parse.

string
Examples
Exampleinternal_error
{
"code": "internal_error",
"message": "internal server error"
}