Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 618 Bytes

AuditLogs.md

File metadata and controls

26 lines (17 loc) · 618 Bytes

Audit Logs

Monitor logs of what's happening in your organization.

<?php
use Darkterminal\TursoPlatformAPI\Client;

require_once __DIR__ . '/vendor/autoload.php';

$turso = new Client(getenv('ORG_NAME'), getenv('API_TOKEN'));

List Audit Logs

Return the audit logs for the given organization, ordered by the created_at field in descending order.

$turso->auditLogs()->list()->get();
// List 20 logs per page, page 1
$turso->auditLogs()->list(20, 1)->get();

Ref: https://docs.turso.tech/api-reference/audit-logs/list

Turso Audit Logs: https://docs.turso.tech/api-reference/audit-logs