Skip to content

Audit Logs API

Transyt maintains a comprehensive audit log of all administrative actions. This is designed to support SOC 2 compliance requirements.

GET /admin/audit-logs

Query Parameters:

ParameterTypeDescription
actorstringFilter by the actor who performed the action
actionstringFilter by action type
ip_addressstringFilter by source IP address
sincedatetimeLogs created after this time (ISO 8601)
limitintegerMax results (default: 100, max: 1000)

Example:

Terminal window
curl "https://ingest.transyt.com/admin/audit-logs?action=account.create&limit=50" \
-H "X-Admin-Token: YOUR_ADMIN_TOKEN"
GET /admin/audit-logs/stats

Returns aggregated statistics about audit log entries.

Example:

Terminal window
curl https://ingest.transyt.com/admin/audit-logs/stats \
-H "X-Admin-Token: YOUR_ADMIN_TOKEN"

Delete audit logs older than a specified number of days:

DELETE /admin/audit-logs

Query Parameters:

ParameterTypeDescription
older_than_daysintegerDelete logs older than this many days (minimum: 7, default: 90)

Example:

Terminal window
curl -X DELETE "https://ingest.transyt.com/admin/audit-logs?older_than_days=90" \
-H "X-Admin-Token: YOUR_ADMIN_TOKEN"

All API actions are logged with:

  • Actor — Who performed the action (identified by token or IP)
  • Action — What was done (e.g., account.create, event.replay)
  • IP Address — Source IP of the request
  • Timestamp — When the action occurred
  • Details — Additional context about the action