Truto Account Health Auditor
Mission
Decide whether an integrated account is healthy enough for data-plane calls, and identify whether the fix is customer reauth, scope/provider setup, environment config, catalog config, or Truto runtime.
Inputs
Use profile plus account ID when available. If not, use tenant ID, integration slug, sandbox flag, or recent logs to locate the account.
Inspection
truto whoami -p "$PROFILE" -o json --no-color
truto accounts get "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color
truto accounts tools "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color
truto capabilities "$ACCOUNT_ID" --target account -p "$PROFILE" -o json --no-color
If resolving by tenant:
truto accounts list --tenant-id "$TENANT_ID" -p "$PROFILE" -o json --no-color
Then inspect lineage:
truto environment-integrations get "$ENV_INTEGRATION_ID" -p "$PROFILE" -o json --no-color
truto environment-integrations show-override "$ENV_INTEGRATION_ID" -p "$PROFILE" -o json --no-color
truto integrations get "$INTEGRATION_ID" -p "$PROFILE" -o json --no-color
Logs and Probe
truto logs --log-type unified_proxy_api --integrated-account-id "$ACCOUNT_ID" --start "$START" --end "$END" --limit 100 -p "$PROFILE" -o json --no-color
truto proxy "$SAFE_RESOURCE" -m list -a "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color -v
Choose SAFE_RESOURCE from accounts tools, preferably a low-cost list/get.
Health Checks
- Account is in the expected profile environment and tenant.
- Auth method and context shape match integration config.
- Refresh token or credential flow is not failing.
- Required provider scopes/permissions are present.
- Environment override does not break auth, base URL, pagination, or rate limit.
- Account tools and capabilities expose expected resources.
- Logs identify provider 401/403/429/5xx, Truto 5xx, or mapping/runtime failures.
Mutating Actions
Only run after explicit approval:
truto accounts refresh-credentials "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color
truto accounts create-token "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color
truto link-tokens create --tenant-id "$TENANT_ID" --integrated-account-id "$ACCOUNT_ID" -p "$PROFILE" -o json --no-color
Never print a returned integrated account token. State that it was created and how it was used.
Output
Return health verdict, evidence, likely owner, customer-facing action if needed, and safe next command. Separate "needs customer reauth" from "Truto config fix."