CoolifyApi 1.0.0

dotnet add package CoolifyApi --version 1.0.0
                    
NuGet\Install-Package CoolifyApi -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CoolifyApi" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CoolifyApi" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="CoolifyApi" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CoolifyApi --version 1.0.0
                    
#r "nuget: CoolifyApi, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CoolifyApi@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CoolifyApi&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=CoolifyApi&version=1.0.0
                    
Install as a Cake Tool

CoolifyClient

A .NET client for the Coolify API, generated from openapi.yaml and then manually fine-tuned.

Installation

dotnet add package CoolifyApi

Usage

using CoolifyApi;

var client = new CoolifyApiClient(
    apiKey: "your-api-token",
    baseUrl: "https://your-coolify-instance.com/api/v1");

var health = await client.HealthcheckAsync();
var servers = await client.ListServersAsync();
var applications = await client.ListApplicationsAsync();
var projects = await client.ListProjectsAsync();

Full generated surface (all endpoints)

using CoolifyApi;

var client = new CoolifyApiClient("your-api-token", "https://your-coolify-instance.com/api/v1");

// Access the generated Refit interface directly:
var allTeams = await client.Service.ListTeams();
var app = await client.Service.GetApplicationByUuid("app-uuid");

How this client is generated

The API interface and models in src/CoolifyApi/ICoolifyApi.cs are generated with Refitter from src/openapi.yaml.

Typical command used:

dotnet refitter src/openapi.yaml --skip-validation --simple-output

Notes:

  • --skip-validation is used because the source OpenAPI document is 3.1.0, while the generator validation path does not fully support it.
  • Generated code is then committed into ICoolifyApi.cs.

Manual fine-tuning applied

The exposed API behavior on Coolify v4.0.0-beta.463 is not fully aligned with the shipped OpenAPI schema, so manual fixes were required:

  1. Application.build_pack compatibility fix

    • The schema enum is too strict (nixpacks, static, dockerfile, dockercompose).
    • Real API responses include additional values (for example dockerimage).
    • To avoid deserialization failures, Application.BuildPack is treated as string.
  2. Simplified public API layer

    • CoolifyApiClient exposes small summary models (ApplicationSummary, ServerSummary, etc.) for common operations.
    • The full generated interface is still available through client.Service.

Integration Tests

Configure your API key via user secrets:

cd tests/CoolifyApi.IntegrationTests
dotnet user-secrets set "Coolify:ApiKey" "<your-token>"
dotnet user-secrets set "Coolify:BaseUrl" "https://your-coolify-instance.com/api/v1"

Then run:

dotnet test

License

See LICENSE.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

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
1.0.0 119 3/25/2026