Audit Log
Anima maintains an immutable, append-only audit log of every action performed by or on behalf of agents. The audit log is critical for compliance, incident response, and operational visibility.What Gets Logged
Every API call, agent action, and system event produces an audit entry:| Category | Events |
|---|---|
| Agent | Create, update, delete, suspend |
| Send, receive, forward, delete | |
| Cards | Create, authorize, decline, close |
| Vault | Store, retrieve, rotate, delete secrets |
| Wallet | Payment, budget change, approval request |
| Identity | DID creation, key rotation, credential issuance/revocation |
| A2A | Task sent, received, completed, failed |
| Auth | API key created, rotated, revoked; login attempts |
| Pod | Created, updated, deleted, bridge created |
Querying the Audit Log
- Tab Title
- Tab Title
- Tab Title
Audit Event Structure
Exporting Audit Logs
Export logs for compliance review or SIEM integration:- Tab Title
- Tab Title
API Reference
| Endpoint | Description |
|---|---|
GET https://api.useanima.sh/api/audit-log/events | Query audit events |
GET https://api.useanima.sh/api/audit-log/events/{id} | Get a single audit event |
POST https://api.useanima.sh/api/audit-log/export | Start an export job |
GET https://api.useanima.sh/api/audit-log/export/{id} | Check export job status |
POST https://api.useanima.sh/api/audit-log/siem | Configure SIEM streaming |
GET https://api.useanima.sh/api/audit-log/siem | Get SIEM configuration |
Query Parameters
| Parameter | Type | Description |
|---|---|---|
agentId | string | Filter by agent |
podId | string | Filter by pod |
category | string | Filter by category (e.g., email, phone, vault, auth) |
action | string | Filter by specific action |
startTime | string | ISO 8601 start time |
endTime | string | ISO 8601 end time |
limit | number | Max results (default 50, max 1000) |
cursor | string | Pagination cursor |
Configuration
| Variable | Default | Description |
|---|---|---|
ANIMA_AUDIT_RETENTION_DAYS | 365 | How long to retain audit events |
ANIMA_AUDIT_HASH_ALGORITHM | sha256 | Hash algorithm for immutability proofs |
ANIMA_AUDIT_SIEM_BATCH_SIZE | 100 | Batch size for SIEM streaming |
ANIMA_AUDIT_EXPORT_MAX_ROWS | 1000000 | Maximum rows per export job |
Next Steps
- Anomaly Detection — Detect unusual agent behavior
- SOC 2 Controls — Map audit events to SOC 2 controls
- Compliance Reporting — Generate compliance reports
