Developer CenterGuidesAudit Trail

    Audit Trail

    Record-level audit logging is available through the public history and export routes under `/api/v1`.

    Public Routes

    • GET /api/v1/records/{id}/history returns record-scoped audit history and user-name enrichment.
    • GET /api/v1/audit/export?format=csv|json exports company-scoped audit rows, with optional filters for record_id, action, and source.

    Returned Fields

    • id
    • record_id
    • user_id
    • action
    • changes
    • source
    • ip_address
    • created_at
    • user_name enrichment when profile data is available

    Limits

    Record history returns the most recent entries first and accepts a limit query parameter. Audit export supports CSV and JSON output, with a higher export limit than the per-record history route.