Audit logs your customers can actually see
Add enterprise-grade audit logs to your SaaS with one API call. Query via REST, enforce PII redaction, and stay compliant — without building it yourself.
import { LogStitch } from '@logstitch/sdk'; const logs = new LogStitch('pk_live_...'); await logs.track({action: 'document.shared',actor: { id: 'user_123', name: 'Alice' },tenant_id: 'acme_corp',});Why LogStitch
Everything you need to ship audit logs — nothing you don't.
5-Minute Integration
Install our SDK, add your API key, call one function. That's it. Production-ready audit logs in less time than it takes to write a README.
Multi-Tenant by Default
Every event is scoped to a tenant. Generate tenant API keys so your customers can query their own logs via REST — no extra code needed.
PII Redaction Built-in
Credit cards, SSNs, emails, and secrets are automatically detected and scrubbed before storage. No config needed.
Build this in minutes
Use our API to give your customers full visibility into their account activity.
Audit Log
What your customers see — built with a single API call and a few lines of React.
Fetch events
Generate a viewer token server-side, then fetch your tenant's events from the client.
const { token } = await logstitch.viewerTokens.create({tenant_id: orgId,}); const res = await fetch('/api/v1/events', {headers: { Authorization: `Bearer $${token}` },});Render the UI
Map over events and render them however you want. Full control, zero lock-in.
{events.map((e) => (<div key={e.id}><Badge>{e.action}</Badge><span>{e.actor.name}</span><time>{e.occurred_at}</time></div>))}Three steps to production
From zero to customer-facing audit logs in under 10 minutes.
Install & Configure
Install the SDK and initialize with your API key.
npm install @logstitch/sdkSend Events
Track any action in your app with a single function call.
await logstitch.track({action: 'invoice.paid',actor: { id: userId },tenant_id: orgId,});Query Logs via API
Fetch events with filtering, pagination, and tenant scoping. Build any UI you want.
const events = await logstitch.events.list({tenant_id: 'acme_corp',category: 'mutation',});Built for production
Every feature you need to ship enterprise-grade audit logs.
API Accessible Logs
Query, filter, and export your audit logs programmatically via REST API.
Full-Text Search & Filtering
Search across all event fields. Filter by action, actor, tenant, and date range.
Immutable Event Storage
Events are append-only and content-hashed. Tamper-evident by design.
Automatic PII Redaction
Credit cards, SSNs, and secrets are detected and scrubbed automatically.
Visibility Tiers
Control exactly which events and fields each customer tier can see.
API Key Management
Create, rotate, and scope API keys with granular permissions.
Simple, transparent pricing
Start free. Scale as you grow. No surprises.
Free
Sandbox tier. Integrate and demo.
Start FreePro
Full production tier for growing teams.
Start Free TrialEnterprise
Custom everything. SLAs and dedicated support.
Contact SalesShip audit logs today, not next quarter
5,000 events/month free. No credit card required.