Skip to content

Fetch one audit entry (admin only)

GET
/api/v1/audit-logs/{log_id}
curl --request GET \
--url https://example.com/api/v1/audit-logs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'
log_id
required
Log Id
string format: uuid

Successful Response

Media typeapplication/json
object
success
required
boolean
default: true
data
required
AuditLogRead
object
id
required
Id
string format: uuid
resource_type
required
Resource Type
string
resource_id
required
Resource Id
Any of:
string format: uuid
action
required
AuditAction
string
Allowed values: create update delete classify policy_check evidence_generate login login_failed read
actor_id
required
Actor Id
Any of:
string format: uuid
actor_email
required
Actor Email
Any of:
string
actor_type
required
ActorType

system marks an action taken while authentication was disabled.

string
Allowed values: user system
actor_label
required
Actor Label
string
request_id
required
Request Id
Any of:
string
ip_address
required
Ip Address
Any of:
string
user_agent
required
User Agent
Any of:
string
old_values
required
Old Values
object
key
additional properties
any
new_values
required
New Values
object
key
additional properties
any
context
required
Context
object
key
additional properties
any
created_at
required
Created At
string format: date-time

Example

{
"success": true,
"data": {
"resource_type": "ai_system",
"action": "create",
"actor_email": "risk@aigov.example.com",
"actor_type": "user",
"actor_label": "system",
"ip_address": "203.0.113.10"
}
}

Unauthorized

Media typeapplication/json
ErrorResponse
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
details
Details
correlation_id
Correlation Id
Any of:
string

Example

{
"error": {
"code": "not_found",
"correlation_id": "0f4b9a2e-6c2b-4f0e-9a4a-1c2b3d4e5f60",
"message": "AI system not found."
}
}

Forbidden

Media typeapplication/json
ErrorResponse
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
details
Details
correlation_id
Correlation Id
Any of:
string

Example

{
"error": {
"code": "not_found",
"correlation_id": "0f4b9a2e-6c2b-4f0e-9a4a-1c2b3d4e5f60",
"message": "AI system not found."
}
}

Not Found

Media typeapplication/json
ErrorResponse
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
details
Details
correlation_id
Correlation Id
Any of:
string

Example

{
"error": {
"code": "not_found",
"correlation_id": "0f4b9a2e-6c2b-4f0e-9a4a-1c2b3d4e5f60",
"message": "AI system not found."
}
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}