Skip to content

Audit Logs

Shows how to query audit log events for your workspace.

This example assumes using Synthesia; is in scope and apiKey contains your Synthesia API key.

1
2
3
4
5
6
7
using var client = new SynthesiaClient(apiKey);

// Query paginated audit log events for a workspace.
// Supports filtering by date range, actions, actor IDs, and target ID.
// Exactly one of workspaceId or organizationId must be provided.
var response = await client.AuditLogs.GetAuditLogEventsAsync(
    limit: 10);