Datatape
Security

Audit logs

Track who called what tool, with what parameters, and when — with retention based on your plan.

Audit logs

Datatape logs every tool execution so you can track how AI agents interact with your data. Audit logs answer four questions: who, what, when, and what happened.

What's logged

Each audit log entry captures:

FieldDescription
TimestampWhen the tool was called (UTC)
IdentityUser email (for OAuth) or agent API key hint (for key auth)
AgentWhich agent received the request
ToolThe tool that was executed
ParametersThe parameter values passed to the tool
StatusSuccess or failure
DurationHow long the query took to execute
Result summaryRow count returned (result data is not stored)
Execution Logs page with filters and recent tool executions

Query result data is not stored in audit logs. Only metadata (row count, duration, status) is retained. This keeps logs lightweight and avoids storing sensitive query output.

Accessing audit logs

  1. Go to Settings > Audit Logs
  2. Filter by date range, agent, tool, or user
  3. Click any entry to see full details including parameters

You can also filter logs at the agent level by navigating to an agent and opening its Audit Log tab.

An expanded audit log entry showing the parameters JSON

Retention by plan

PlanRetention period
Team7 days
Scale90 days
Enterprise1 year or custom (contact us)

Logs older than your plan's retention period are permanently deleted and cannot be recovered. If you need longer retention, consider upgrading your plan or exporting logs via the API.

Export

Enterprise plans can export audit logs via the API for ingestion into your SIEM or data warehouse:

curl https://api.datatape.ai/api/v1/audit-logs \
  -H "Authorization: Bearer dt_live_..." \
  -d '{"from": "2026-01-01", "to": "2026-03-15"}' \
  -o audit-logs.json

Use cases

  • Compliance — demonstrate to auditors exactly what data AI agents accessed
  • Debugging — trace a bad result back to the parameters and tool that produced it
  • Usage tracking — identify which tools are called most and by whom
  • Security review — detect unexpected access patterns or unauthorized key usage

On this page