Skip to content
Maua.Culturewire

Audit logs

Recorded actions, reading the audit log with an API key or in the dashboard, filters and retention.

The audit log records who changed what: API keys, auth configs, connections, triggers, automations, MCP servers, billing, members and the AI workspace. Use it to answer "who revoked this key" or to export changes into your own security tooling.

What is recorded

EntityActions
Organizationorganization.created, .updated, .deleted, .two_factor_policy_changed, .opt_in_toolkit_changed
Projectsproject.created, project.updated, project.deleted
API keysapi_key.created, api_key.revoked
Auth configsauth_config.created, auth_config.updated, auth_config.deleted
Connected accountsconnected_account.connected, .disconnected, .deleted, .expired, .revoked
Triggerstrigger.created, .updated, .enabled, .disabled, .deleted, .secret_rotated, .test_event_sent
Trigger deliveriestrigger_delivery.redelivered
Automationsautomation.created, .updated, .published, .enabled, .disabled, .deleted, .test_run_started
Automation runsautomation_run.rerun, .canceled
Webhook endpointwebhook_endpoint.updated, .deleted, .secret_rotated
MCP serversmcp_server.created, .updated, .deleted
MCP user URLsmcp_user_token.created, .revoked
Billingbilling.checkout_started, billing.plan_changed
Invitationsinvitation.created, .resent, .revoked, .accepted, .declined
Membersmember.role_changed, member.removed, member.left, member.claimed
AI workspaceai_workspace.updated, .stewards_updated, .file_reset, .downloaded, .checkin_answered, .checkin_confirmed, .checkin_dismissed, .assistant_updated, .claude_access_updated
AI setupai_onboarding.started, .drafted, .failed, .applied, .discarded
AI suggestionsai_workspace_suggestion.submitted, .approved, .rejected, .withdrawn
Accountuser.profile_updated, .password_changed, .email_change_requested, .email_changed, .deleted
Account securityuser.two_factor_enabled, .two_factor_disabled, .two_factor_backup_codes_regenerated, .trusted_devices_revoked, .two_factor_reset
Custom MCP appscustom_mcp_app.created, .updated, .deleted
Remote MCP toolsremote_mcp.tools_refreshed

Account and account security entries are written to every organization the person belongs to, with the person as the target. user.email_change_requested records only the domain of the new address; no entry ever holds a password or a code. See Account. user.two_factor_reset comes from support (actor system). See Two-factor authentication.

AI setup and check-in entries are organization-level. They record ids, the source (website or description) and host, counts, token counts and key names, never the values, page text, chat messages or Claude's output. See AI workspace.

ai_workspace.claude_access_updated records the new and the previous Claude access (mode, previous: off, read or propose). A suggestion Claude sends over a member's agent link writes ai_workspace_suggestion.submitted with the member as the actor and origin: "mcp", project_id, mcp_server_id and learning_kind in the metadata, never the text. Claude reading the workspace is not audited; the link's "last used" time records it. See Use your workspace in Claude.

Custom MCP app entries are organization-level. They record the slug, server host, sign-in method and the names of changed fields, never header values or tokens. remote_mcp.tools_refreshed is project-level and records counts only (tools, added, removed). See Remote MCP apps.

mcp_server.created records the server's kind; the managed server of Connect to agents also has via: "claude_connection". Agent links add via: "claude_connection" to mcp_user_token.created and .revoked, and a revocation records its reason: rotated, disconnected, member_removed, role_changed or account_deleted. Neither ever holds the link or its token.

organization.updated records the old and new name and slug. api_key.created records the key's permissions and allowed toolkits and tools (names only, see API keys). organization.deleted is written when an owner deletes the organization; the purge that follows removes the organization's audit log along with everything else, so export what you need first (see Organizations and projects).

Automation entries are project-level. They record ids, slugs, versions and reasons, never step inputs, outputs or event data. automation.published records the version, trigger_slug, the tools and whether it was enabled. automation.disabled comes from a member, or from the system (actor system) when an automation pauses itself, with reason run_failures or run_rate_exceeded. Single runs are not audited; see their history in Automations.

Deleting an auth config together with its accounts records one connected_account.deleted per account, with cascade: "auth_config" in the metadata.

Each entry has:

FieldMeaning
actor_type, actor_iduser (a dashboard user), api_key (a key id) or system (no id)
actionOne of the actions above
target_type, target_idThe object that changed
project_idThe project, or null for organization-level entries (projects, billing)
metadataExtra facts, for example the plan before and after a change
ip_address, user_agentWhere the change came from, when known
created_atISO 8601, UTC

Metadata never contains secrets, tokens, full URLs with query strings or message bodies.

Read the log

With an API key that has the audit:read permission (keys with full access have it), you get the entries of the key's project:

curl "https://<your-host>/api/v1/audit_logs?action=api_key.*,auth_config.deleted&limit=50" \
  -H "Authorization: Bearer $API_KEY"
{
  "data": [
    {
      "id": "aud_...",
      "organization_id": "org_...",
      "project_id": "proj_...",
      "actor_type": "user",
      "actor_id": "usr_...",
      "action": "api_key.revoked",
      "target_type": "api_key",
      "target_id": "key_...",
      "metadata": { "name": "CI", "prefix": "sk_4fQ9xT2m" },
      "ip_address": "203.0.113.7",
      "user_agent": "Mozilla/5.0 ...",
      "created_at": "2026-10-27T09:12:44.000Z"
    }
  ],
  "next_cursor": "eyJ..."
}

In the dashboard, owners and admins open Organization, Audit log. It shows the whole organization, including organization-level entries such as billing changes, with filters for project, action, actor type and time. Developers and viewers cannot view the audit log.

The organization route behind that page is GET /api/v1/organizations/{organization_id}/audit_logs. It takes the same filters plus project_id, and needs an owner or admin session.

Filters

ParameterMeaning
actionComma list of actions or <entity>.*, for example trigger.*,api_key.created
actor_typeuser, api_key or system
actor_idOne user or API key id
target_idOne object id
from, toISO timestamps, from inclusive and to exclusive
limit1 to 100, default 50
cursornext_cursor of the previous page; keep the other filters the same
project_idOrganization route only

An unknown action returns 400 validation_error on fieldErrors.action. With an API key, project_id is refused the same way: the key's project is always used. The list is newest first. Stop paging when next_cursor is null.

With the SDK:

let cursor: string | undefined;
do {
  const page = await toolwire.auditLogs.list({ action: "api_key.*", limit: 100, cursor });
  for (const entry of page.data) {
    console.info(entry.created_at, entry.action, entry.actor_type, entry.target_id);
  }
  cursor = page.next_cursor ?? undefined;
} while (cursor);

Retention

Entries are kept for 365 days, then deleted. Self-hosted deployments can change this with AUDIT_LOG_RETENTION_DAYS (30 to 3650) on the worker.