Skip to content

List sessions

Shows how to list recent sessions (user's 3D assets) via the unified v3 API.

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

1
2
3
4
5
using var client = new CsmAiClient(apiKey);

// List up to 5 recent sessions for the current user.
var result = await client.Sessions.ListSessionsAsync(limit: 5);
Console.WriteLine($"Returned {result.Results?.Count ?? 0} sessions (total={result.Total}).");