Skip to main content
GET
/
api
/
v1
/
audit
List Audit Log
curl --request GET \
  --url https://api.example.com/api/v1/audit/
[
  {
    "id": "audit-1",
    "action": "context_switch",
    "project_name": "SaaS Platform",
    "environment": "development",
    "skill_name": null,
    "message": "Context switch completado exitosamente",
    "success": true,
    "duration_ms": 1240,
    "created_at": "2026-04-04T05:15:29"
  },
  {
    "id": "audit-7",
    "action": "cli_switch",
    "project_name": "SaaS Platform",
    "environment": "staging",
    "skill_name": null,
    "message": "Supabase link falló: token expirado",
    "success": false,
    "duration_ms": 2100,
    "created_at": "2026-04-03T22:15:29"
  }
]
action
string
Filtrar por tipo de acción: context_switch, env_inject, git_switch, cli_switch, error.
success
boolean
Filtrar por resultado: true (exitosos) o false (fallidos).
project_id
string
Filtrar por ID de proyecto.
limit
integer
default:"50"
Máximo de resultados. Máximo permitido: 200.
offset
integer
default:"0"
Offset para paginación.
[
  {
    "id": "audit-1",
    "action": "context_switch",
    "project_name": "SaaS Platform",
    "environment": "development",
    "skill_name": null,
    "message": "Context switch completado exitosamente",
    "success": true,
    "duration_ms": 1240,
    "created_at": "2026-04-04T05:15:29"
  },
  {
    "id": "audit-7",
    "action": "cli_switch",
    "project_name": "SaaS Platform",
    "environment": "staging",
    "skill_name": null,
    "message": "Supabase link falló: token expirado",
    "success": false,
    "duration_ms": 2100,
    "created_at": "2026-04-03T22:15:29"
  }
]
El audit log es inmutable — solo se pueden leer y crear entradas, nunca modificar o eliminar.