cURL
curl --request GET \ --url https://api.example.com/admin/audit-logs
{ "data": [ { "id": "log_abc123", "userId": "usr_abc123", "action": "user.login", "resource": "auth", "details": { "ip": "192.168.1.1", "userAgent": "Mozilla/5.0" }, "createdAt": "2026-03-30T14:00:00Z" }, { "id": "log_def456", "userId": "usr_abc123", "action": "merchant.create", "resource": "merchants", "details": { "merchantId": "merch_abc123", "name": "Mi Tienda Online" }, "createdAt": "2026-03-30T13:00:00Z" } ], "page": 1, "limit": 20, "total": 2 }
Obtiene los registros de auditoría de la plataforma. Requiere rol ADMIN.
1
20
user.login
merchant.create
transaction.refund