Audit log
Find out who deleted a webhook, who rotated an API token, or when Truto support last opened your account. The audit log records every change made to your team through the dashboard or the API, every sign-in and refused sign-in, and every time a Truto staff member starts an impersonation session. Read it under Settings → Audit log, with GET /log?log_type=audit, or in your own tooling through log forwarding.
Skip the reading — fast path for coding agents
/skill truto
The audit log belongs to the team, not to one environment: it holds the changes from every environment of the team. Only team admins can read all of it; an API token reads only its own environment's entries. Entries are kept for 90 days.
What gets recorded
- Changes made through the API or the dashboard: creating, updating and deleting webhooks, API tokens, integrations, unified APIs, sync jobs, datastores, environments, team members and every other resource you manage. Writes only; reading data is never recorded.
- Sign-ins and sign-outs, with the sign-in method, and refused sign-ins: a wrong password, a rejected two-factor or backup code, a passkey that didn't verify, an SSO response that failed, too many tries in a row, and a password or magic-link sign-in your organization refuses because it enforces SSO.
- Password resets: a reset being requested for an account, the password being changed, and a reset or reset request that was refused.
- Security changes: turning two-factor authentication on (including when a team member sets it up while signing in), off or resetting it, adding, renaming or removing passkeys, revoking sessions, SSO and SCIM changes, and granting or revoking OAuth clients.
- Billing: opening the billing portal, and changes made in Stripe: billing details, adding or removing a payment method, choosing another default card, and adding, changing or removing a tax ID.
- Connected accounts: an end user connecting, reconnecting or disconnecting an account, and a post-install or validation step failing after a connect.
- Truto staff access: a staff member creating an impersonation link, the start of every impersonation session, every change a staff member makes while impersonating, and every change Truto staff make to your team from Truto's own admin tools (not while impersonating), such as refreshing an account's credentials or re-running its post-install steps.
Not recorded: Unified, Proxy and Custom API calls, calls to per-integrated-account MCP servers, and webhooks that integrations send to Truto. Those are in the other log types. A sign-in attempt for an email that has no account isn't recorded, since it belongs to no team.
Each entry holds metadata only. Request and response bodies are never stored, and credentials in the URL, such as an OAuth code, are replaced with REDACTED. A change that failed is still recorded, with the HTTP status Truto answered, so you can see attempts as well as changes. Every entry has the same fields wherever you read it: the dashboard, its CSV export, the API and log forwarding.
Read it in the dashboard
Open Settings → Audit log (https://app.truto.one/settings/audit-log). Team members who aren't admins see "Only team admins can view the audit log".
Each row shows When, Who, What happened with the object it happened to, Type, and Environment. Team-level events, such as sign-ins, member changes and SCIM provisioning, have no environment.
- Search matches the action, the actor's name and the target's name and ID.
- Time range goes back up to 90 days: Last 24 hours, Last 7 days, Last 30 days, or Last 90 days.
- Filters narrows by Actor (and, for users, which user), Action (Created, Updated, Deleted, Failed, Other), Type, and Environment.
- Export downloads the rows you have loaded as a CSV file, with the same fields as the API.
Click a row to open its details: the actor, the target, the environment, the request (method and full URL, status, request ID, IP, country and browser), and the action key, such as webhook.updated. The label you see in the table can be reworded; the action key doesn't change. Use it when you filter with the API or set up alerts in your log tool.
Who acted
audit_actor_type says what kind of identity made the change, and audit_actor_name names it.
audit_actor_type |
Who | Example audit_actor_name |
|---|---|---|
user |
A team member signed in to the dashboard | Priya |
api_token |
A call made with an API token. Named after the token's creator and label | Priya via API token "Production CLI" |
truto_staff |
A Truto staff member. Staff are never named to you | Truto staff |
end_user |
Your end user, in the connections widget or a connect flow | End user (tenant acme) |
integrated_account |
A call made with a token scoped to one integrated account, such as a RapidForm | Integrated account (tenant acme) |
scim |
Your identity provider, through SCIM | SCIM provisioning |
system |
Truto itself, with no person behind it, such as a post-install step failing | System |
Two names stand in for a person Truto can't identify: a refused SAML or OIDC sign-in reads Unknown user and names the SSO connection as its target (at most 10 are recorded per connection in 15 minutes; past that, one more entry says the rest of those 15 minutes weren't recorded), and a billing change made in Stripe reads Stripe, since Stripe doesn't say who made it. A change made in the billing portal follows a billing.portal_opened entry that names who opened the portal.
A team member's own account events (sign-ins, refused sign-ins, password resets, two-factor and passkey changes) appear in the audit log of every team they belong to. A Truto staff account's own sign-ins appear in none.
When a team member acts through the dashboard assistant or the Platform MCP server, audit_via is assistant or platform_mcp, and the name reads Priya via assistant. When a Truto staff member acts while impersonating a user, audit_actor_name is that user and audit_staff_name is Truto staff.
What happened
audit_action is <object>.<verb>. Some you'll see often:
audit_action |
Meaning |
|---|---|
webhook.created, webhook.updated, webhook.deleted |
A webhook was added, changed or removed |
api_token.created, api_token.deleted |
An API token was created or deleted |
integration.installed, integration.uninstalled |
An integration was installed in or removed from an environment |
integrated_account.connected, integrated_account.reconnected |
An end user connected an account, or connected it again |
integrated_account.disconnected |
An integrated account was deleted |
integrated_account.post_install_failed, integrated_account.validation_failed |
A step that runs after a connect failed. audit_detail holds the start of the error |
team.member_invited |
Someone was invited to the team |
user.signed_in, user.signed_out |
A team member signed in or out. audit_detail holds the sign-in method |
user.sign_in_failed |
A sign-in was refused. audit_detail holds the method, such as password, mfa, passkey or saml |
user.password_reset_requested, user.password_reset, user.password_reset_failed |
A password reset link was sent; the password was changed with it; a reset was refused |
billing.details_updated, billing.payment_method_added, billing.payment_method_removed, billing.default_payment_method_changed, billing.tax_id_added, billing.tax_id_updated, billing.tax_id_removed |
A billing change made in Stripe. audit_detail says what changed: the fields, such as address, email, the card's brand and last four digits, or the kind of tax ID, such as eu vat |
mfa.disabled, session.revoked |
Two-factor authentication was turned off; a session was revoked |
impersonation.link_created, impersonation.started |
A Truto staff member created a link to impersonate a team member; the link was used and the session started |
truto_staff.<object>.<verb> |
A change Truto staff made to your team from Truto's admin tools, such as truto_staff.integrated_account.refresh_credentials |
The target of the action is in audit_target_type, audit_target_id and audit_target_name. A webhook is named by its URL's host only, such as hooks.slack.com, since a hook URL can hold a secret in its path. For objects that keep versions, such as integrations and unified models, audit_target_version is the version the change produced.
Query it with the API
Send log_type=audit and the team's ID in log_type_filter[team_id]. The caller must be an admin of that team, or use an API token issued for it. An API token gets only the entries of its own environment; team-level entries such as sign-ins, member changes and billing have no environment, so only team admins see them.
curl -G https://api.truto.one/log \
-H "Authorization: Bearer <API token>" \
--data-urlencode "log_type=audit" \
--data-urlencode "log_type_filter[team_id]=<team_id>" \
--data-urlencode "log_type_filter[audit_target_type]=webhook" \
--data-urlencode "log_type_filter[audit_action_kind]=deleted" \
--data-urlencode "created_at[gt]=2026-11-01T00:00:00.000Z" \
--data-urlencode "created_at[lt]=2026-11-18T00:00:00.000Z"from truto_python_sdk import TrutoApi
truto_api = TrutoApi(token="<API token>")
rows = await truto_api.logs.list(
log_type="audit",
log_type_filter={
"team_id": "<team_id>",
"audit_target_type": "webhook",
"audit_action_kind": "deleted",
},
created_at={
"gt": "2026-11-01T00:00:00.000Z",
"lt": "2026-11-18T00:00:00.000Z",
},
).to_array()A row looks like this:
{
"timestamp": "2026-11-17T09:41:07.220Z",
"log_type": "audit",
"team_id": "5b0f7e2c-1d4a-4c8e-9f36-2a7b9d1e4c50",
"environment_id": "ac15abdc-b38e-47d0-97a2-69194017c199",
"audit_action": "webhook.deleted",
"audit_actor_type": "api_token",
"audit_actor_name": "Priya via API token \"Production CLI\"",
"audit_target_type": "webhook",
"audit_target_id": "0b6c2f8e-4a1d-4f3b-8e27-9c5d1a7e3f42",
"audit_target_name": "example.com",
"api_token_id": "7e1d4c9a-2b5f-4e8a-a6c3-1f0d9b8e2a57",
"http_method": "DELETE",
"http_url": "https://api.truto.one/webhook/0b6c2f8e-4a1d-4f3b-8e27-9c5d1a7e3f42",
"http_status_code": 200,
"http_request_id": "8d2f9b1c4e7a1234",
"http_ip": "203.0.113.7",
"http_useragent": "truto-cli/1.0.45",
"http_country": "IN"
}A row has only these fields: timestamp, log_type, team_id, environment_id, the audit_* fields, user_id and api_token_id (who acted; absent on a Truto staff member's own changes), and the request's http_method, http_url, http_status_code, http_request_id, http_ip, http_useragent and http_country. A field with no value is left out.
Filters
Every filter goes in log_type_filter. team_id is required; the rest narrow the result.
| Key | Matches |
|---|---|
team_id |
Required. The team whose audit log to read. |
environment_id |
Changes made in one environment. |
audit_action |
One action key, such as webhook.updated. |
audit_action_kind |
created (created, installed, connected, reconnected), updated (updated, version_restored, renewed), deleted (deleted, uninstalled, disconnected, revoked), failed (refused or failed attempts: an HTTP status of 400 or more, or an action ending _failed), or other. created, updated and deleted count only what succeeded. |
audit_actor_type |
One of the actor types above. |
user_id |
The team member who acted, including what Truto staff did while acting as that member. Never matches a staff member's own actions. |
audit_target_type |
The kind of object changed. Send an array (log_type_filter[audit_target_type][]=webhook&log_type_filter[audit_target_type][]=datastore) to match any of several. |
audit_target_id |
The ID of the object changed. |
request_id |
One request, by http_request_id. |
search |
Case-insensitive text over the action, the actor's name and the target's name and ID. Every word (up to 5) must appear. |
An unknown audit_actor_type or audit_action_kind returns 400. The range between created_at[gt] and created_at[lt] can be up to 90 days. Paging works as for the other log types: send next_cursor from the previous page with the same filters.
Send it to your own tools
To keep audit entries longer than 90 days, or to alert on them, add audit to a destination's config.log_types in log forwarding. A destination receives the audit log only when audit is listed, and then gets the entries from every environment of the team. Only a team admin, signed in to the dashboard, can add, change or remove a destination that lists audit; an API token can't.
Audit entries are sent only to destinations that list audit. A destination that takes api never receives the audit fields, since any team member can set one up. A request made with an API token, by an end user in the connections widget, or through the Platform MCP server still reaches it as an ordinary API log row, as it did before the audit log; a change made in the dashboard doesn't.
Next
For API calls, sync job runs and webhook deliveries, see Viewing logs. For the identity side of your team, see SSO and SCIM provisioning.