Skip to main content

Audit Log

Every significant action in Haltless is recorded in the audit trail. Query audit logs for compliance, debugging, and operational visibility.

List audit logs

GET /audit

Auth: Bearer JWT (any role)

ParameterTypeDescription
actionstringFilter by action (max 100 chars)
resource_typestringFilter by resource type (max 100 chars)
pageintPage number
page_sizeintItems per page (max 100)
curl "https://api.haltless.io/api/v1/audit?action=create_machine&page_size=10" \
-H "Authorization: Bearer YOUR_TOKEN"

Response:

{
"items": [
{
"id": "uuid",
"tenant_id": "uuid",
"user_id": "uuid",
"action": "create_machine",
"resource_type": "machine",
"resource_id": "uuid",
"details": {"name": "CNC Mill #1", "identifier": "CNC-001"},
"created_at": "2026-04-04T10:00:00Z"
}
],
"total": 1,
"page": 1,
"page_size": 10
}

Tracked actions

ActionResource typeDescription
create_machinemachineMachine registered
update_machinemachineMachine details updated
delete_machinemachineMachine soft-deleted
create_alert_rulealert_ruleAlert rule created
acknowledge_alertalertAlert acknowledged
create_work_orderwork_orderWork order created
update_work_orderwork_orderWork order status changed
create_signoffsignoffDigital sign-off recorded
create_api_keyapi_keyAPI key generated
revoke_api_keyapi_keyAPI key revoked
update_role_permissionstenantRole permissions changed
update_dashboard_presetstenantDashboard presets saved
login_successuserSuccessful login
login_failureuserFailed login attempt
mfa_enableduserMFA activated