SimplaixSimplaix Gateway
Reference

Audit

Query audit logs and aggregate audit statistics.

Endpoint Map

MethodPathAuthPurpose
GET/api/v1/audit/logsJWTQuery audit logs
GET/api/v1/audit/logs/:idJWTGet one audit log
GET/api/v1/audit/statsJWT + admin roleGet aggregate stats

Query Logs

GET /api/v1/audit/logs?tool_name=slack_send_message&status=failed&limit=50&offset=0
Authorization: Bearer <jwt>

Query Parameters

ParameterDescription
user_idFilter by user ID (admins only; non-admin forced to self)
tenant_idFilter by tenant
tool_nameFilter by tool
statuspending confirmed rejected completed failed
start_date / end_dateISO date range
limit / offsetPagination

Response envelope:

{
  "data": [
    {
      "id": "...",
      "userId": "usr_...",
      "toolName": "slack_send_message",
      "status": "failed"
    }
  ],
  "pagination": {
    "limit": 50,
    "offset": 0,
    "total": 1
  }
}

Stats

GET /api/v1/audit/stats
Authorization: Bearer <admin-jwt>

Returns { data: { total, byStatus, avgDuration } }.

On this page