List Audit Log
curl --request GET \
--url https://api.example.com/api/v1/audit/import requests
url = "https://api.example.com/api/v1/audit/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/audit/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/audit/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/audit/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/audit/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/audit/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"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"
}
]
Audit
List Audit Log
Listar el audit log con filtros opcionales y paginación.
GET
/
api
/
v1
/
audit
/
List Audit Log
curl --request GET \
--url https://api.example.com/api/v1/audit/import requests
url = "https://api.example.com/api/v1/audit/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/audit/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/audit/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/audit/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/audit/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/audit/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"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"
}
]
string
Filtrar por tipo de acción:
context_switch, env_inject, git_switch, cli_switch, error.boolean
Filtrar por resultado:
true (exitosos) o false (fallidos).string
Filtrar por ID de proyecto.
integer
default:"50"
Máximo de resultados. Máximo permitido: 200.
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.
⌘I

