Skip to content

Account Audit

Account audit events help teams inspect security-sensitive account activity that is visible to the current user or organization owner.

When To Use This

Use account audit APIs when you need to review sign-in, session, membership, support override, or identity-provider activity exposed to your account. Global support investigation endpoints are not part of the public customer reference.

Example: Read My Audit Events

curl "$SPENDWARE_BASE_URL/api/v1/account-audit-events/me?limit=50" \
  -H "Authorization: Bearer $SPENDWARE_API_KEY"
events = client.account_audit.list_me(limit=50)
print(events)
const events = await client.accountAudit.listMe({ limit: 50 });
console.log(events);

Organization Audit

Organization owners can read organization-scoped audit events:

curl "$SPENDWARE_BASE_URL/api/v1/account-audit-events/tenant/ORGANIZATION_ID?limit=50" \
  -H "Authorization: Bearer $SPENDWARE_API_KEY"

Common Errors

  • 403: the caller is not allowed to read audit events for the requested organization.
  • 422: a date, status, or pagination filter does not match the API schema.