Skip to content

Client

public sealed class PoliPageClient : IDisposable

The primary entry point for the Poli Page API. Provides methods to render templates, stream output, and manage documents.

The constructor takes a single PoliPageClientOptions record. The only required field is ApiKey. See PoliPageClientOptions for every field.

var client = new PoliPageClient(new PoliPageClientOptions
{
ApiKey = Environment.GetEnvironmentVariable("POLI_PAGE_API_KEY")!,
});

The client exposes the operations through a namespaced property:

  • Render — render PDFs (bytes, streaming, preview, or stored document).