Arkloop Developers

Audit Logs

All endpoints require Bearer Token authentication.

Query Audit Logs

GET /v1/audit-logs

Query Parameters

ParameterTypeDescription
org_idstringFilter by organization (platform_admin can query across organizations)
actionstringAction type, e.g., user.login, thread.create
actor_user_idstringActor user ID
target_typestringTarget resource type
sincestringStart time (RFC3339)
untilstringEnd time (RFC3339)
limitintItems per page
offsetintOffset
includestringAdditional fields; include=state returns before/after status

Response

{
  "data": [
    {
      "id": "...",
      "org_id": "...",
      "actor_user_id": "...",
      "action": "user.login",
      "target_type": "user",
      "target_id": "...",
      "trace_id": "...",
      "metadata": {},
      "ip_address": "1.2.3.4",
      "user_agent": "Mozilla/5.0...",
      "created_at": "2024-01-01T00:00:00Z",
      "before_state": null,
      "after_state": null
    }
  ],
  "total": 1250
}

before_state / after_state are only returned when include=state is provided.

On this page