Turso.Platform.Client
0.8.0-pre.11
Prefix Reserved
dotnet add package Turso.Platform.Client --version 0.8.0-pre.11
NuGet\Install-Package Turso.Platform.Client -Version 0.8.0-pre.11
<PackageReference Include="Turso.Platform.Client" Version="0.8.0-pre.11" />
<PackageVersion Include="Turso.Platform.Client" Version="0.8.0-pre.11" />
<PackageReference Include="Turso.Platform.Client" />
paket add Turso.Platform.Client --version 0.8.0-pre.11
#r "nuget: Turso.Platform.Client, 0.8.0-pre.11"
#:package Turso.Platform.Client@0.8.0-pre.11
#addin nuget:?package=Turso.Platform.Client&version=0.8.0-pre.11&prerelease
#tool nuget:?package=Turso.Platform.Client&version=0.8.0-pre.11&prerelease
Turso.Platform.Client
.NET client for the Turso Platform API (https://api.turso.tech): manage databases, groups, auth tokens, organizations, members and invites.
Unlike the Turso and Turso.Data.Sqlite.Provider packages, this is a pure managed HTTP client — it has no native component.
Getting started
using Turso.Platform.Client;
var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Authorization =
new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", platformApiToken);
var client = new TursoPlatformClient(httpClient);
// Create a database
var created = await client.CreateDatabaseAsync(organizationSlug, new CreateDatabaseInput
{
Name = "my-database",
Group = "default",
});
// Mint a database auth token
var token = await client.CreateDatabaseTokenAsync(organizationSlug, "my-database");
// List databases
var databases = await client.ListDatabasesAsync(organizationSlug);
The client is generated with NSwag from the official OpenAPI specification published in tursodatabase/turso-docs (api-reference/openapi.json).
Regenerating the client
The pinned upstream spec lives at openapi.json next to this file and is kept byte-identical to
the published one. Because the spec leaves its request/response schemas anonymous, NSwag would
generate counter names (Response17, Body3); the tools/OpenApiTitler project first derives
proper names from each operationId (ListDatabasesResponse, CreateGroupRequest) and collapses
the repeated { error: string } payloads into one shared ErrorResponse.
Every dotnet build, test, or pack generates the transformed document and C# client under the
project's ignored obj directory. The build uses the version-pinned NSwag.MSBuild package, so it
does not require a globally installed NSwag CLI.
To refresh the tracked spec and regenerate during the next build:
curl -sL https://raw.githubusercontent.com/tursodatabase/turso-docs/main/api-reference/openapi.json -o openapi.json
dotnet build
(or make generate-platform-client from bindings/dotnet).
TursoPlatformClient.Supplement.cs contains the hand-written Extensions union NSwag cannot generate. Use Extensions.All to enable every extension or Extensions.FromNames(...) for an explicit list.
Spec pinned from turso-docs commit ac44bfab64a7 (2026-06-08).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.8.0-pre.11 | 34 | 9/11/2026 |
| 0.8.0-pre.7 | 69 | 8/21/2026 |