GET /v1/admin/audit-events
Tags: audit
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organization_id | query | string | ||
principal_id | query | string | ||
action | query | string | ||
resource_type | query | string | ||
resource_id | query | string | ||
from | query | string | RFC3339 inclusive lower bound | |
to | query | string | RFC3339 exclusive upper bound | |
limit | query | integer | 1..=500, default 50 | |
cursor | query | string | Opaque cursor from prior next_cursor | |
q | query | string | Free-text action substring search |
Responses
200
JSON
{
"$ref": "#/components/schemas/AuditPage"
}400 — INVALID_REQUEST
403 — FORBIDDEN — non-admin caller
Code samples
TypeScript
TypeScript
import { firecase } from "@firecase/sdk";
const result = await firecase.get("/admin/audit-events");
console.log(result);Python
Python
import firecase
result = firecase.get("/admin/audit-events")
print(result)curl
Bash
curl -X GET https://api.firecase.ai/v1/admin/audit-events \
-H "Authorization: Bearer $FIRECASE_API_KEY" \
-H "Content-Type: application/json"