Audit records

Use audit.record to record meaningful actions performed by your application. Include useful context such as a resource ID, but never include passwords, tokens, or secret values.

import { audit } from "@backifydev/sdk";

await audit.record("invoice.approved", { invoiceId: "inv_123" });

Backify associates records with the application context so administrators can review activity.