Skip to main content

Audit Log

Review your account's audit log: a record of who did what and when. Authenticate with a Bearer JWT (see Authentication) or a service-account key. Every endpoint here needs the Audit settings tab.

Endpoints​

MethodPathDescription
GET/api/v1/auditList audit-log entries for your account
GET/api/v1/audit/exportDownload the audit log as CSV or JSON
GET/api/v1/audit/verifyCheck that the audit log has not been changed

List audit entries​

GET /api/v1/audit

ParameterTypeDefaultDescription
actionstringFilter by action (for example create, update; up to 100 characters)
resource_typestringFilter by resource type (for example api_key, user; up to 100 characters)
pageint1Page number
page_sizeint20Items per page (max 100)
curl "https://api.haltless.io/api/v1/audit?resource_type=api_key&page_size=10" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"items": [
{
"id": "...",
"tenant_id": "...",
"user_id": "USER_UUID",
"user_full_name": "Jane Doe",
"user_email": "jane@example.com",
"action": "create",
"resource_type": "api_key",
"resource_id": "...",
"details": { "name": "edge-agent-prod" },
"user_is_service_account": false,
"ip_address": "203.0.113.10",
"impersonator_admin_id": null,
"created_at": "2026-08-05T10:00:00Z"
}
],
"pagination": { "total": 1, "page": 1, "page_size": 10 }
}

Each entry records the actor (user_id, user_full_name, user_email), the action taken, the resource_type and resource_id affected, any structured details, the originating ip_address, and the created_at timestamp. user_is_service_account is true when the actor is a service-account key rather than a person. impersonator_admin_id is set when a Haltless administrator acted as that user during a support session, and is null otherwise. Results are scoped to your own account.

Download the audit log​

GET /api/v1/audit/export?format=csv

The newest 10,000 entries as a file, filtered by action and resource_type as the list is. format is csv (the default) or json; the file is named audit-log-<UTC time>.csv (or .json). Each record has sequence, created_at, user_id, action, resource_type, resource_id, ip_address, details (in CSV, as JSON text) and impersonator_admin_id (the Haltless admin who acted while impersonating, otherwise empty). In CSV, a cell that a spreadsheet would read as a formula is prefixed with '.

When there are more entries than that, the response carries X-Export-Truncated: true: the file holds the newest 10,000, and narrower filters get the rest. A company can download it 10 times an hour; the next answers 429 with a Retry-After header. Each download is itself recorded in the audit log, with whether it was cut short.

Check the audit log​

GET /api/v1/audit/verify

Each entry is chained to the one before it by a hash, so an entry changed, deleted or put out of order breaks the chain from that point. Both ends of the chain are also signed and compared with checkpoints recorded outside the database, so entries cut from the start or the end are detected too. This walks the whole log and says whether it is intact:

{
"intact": true,
"total": 18240,
"verified": 18102,
"first_broken_sequence": null,
"first_broken_reason": null
}

verified counts the entries that carry a hash; entries from before the chain began have none, so it can be below total on an intact log. When the chain is broken, first_broken_sequence names the first entry at fault and first_broken_reason why: hash_mismatch (an entry was changed), prev_hash_mismatch or sequence_gap (an entry was removed or put out of order), missing_hash (an entry that should carry a hash has none), head_missing or tail_missing (entries were cut from the start or the end), tip_signature_invalid or floor_signature_invalid (the signed end of the chain does not match), or anchor_mismatch (a checkpoint recorded outside the database disagrees). Everything after the first break is suspect.