Basic example showing how to create a client and make a request.
1
usingvarclient=newSynthesiaClient(apiKey);
Templates
Shows how to list available video templates in your Synthesia workspace.
123456
usingvarclient=newSynthesiaClient(apiKey);// List all available video templates in your Synthesia STUDIO workspace.// Templates define reusable video layouts with customizable variables.varresponse=awaitclient.Templates.GetTemplatesAsync(limit:10);
Videos
Shows how to list videos in your Synthesia workspace.
123456
usingvarclient=newSynthesiaClient(apiKey);// List all videos created via the API or STUDIO in your workspace.// Supports pagination with limit and offset parameters.varresponse=awaitclient.Videos.GetVideosAsync(limit:10);
Languages
Shows how to get supported languages for video translations.
12345
usingvarclient=newSynthesiaClient(apiKey);// Retrieve the list of supported languages for video translations.// Use these language codes when creating translated versions of your videos.varresponse=awaitclient.Translations.GetTranslateLanguagesAsync();
Webhooks
Shows how to list webhooks configured in your Synthesia account.
123456
usingvarclient=newSynthesiaClient(apiKey);// List all currently configured webhooks in your Synthesia account.// Webhooks notify your application when video generation events occur.varresponse=awaitclient.Webhooks.GetWebhooksAsync(limit:10);
Audit Logs
Shows how to query audit log events for your workspace.
1234567
usingvarclient=newSynthesiaClient(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.varresponse=awaitclient.AuditLogs.GetAuditLogEventsAsync(limit:10);