Skip to main content

TypeScript SDK Quickstart

The official @qumo-deploy/sdk package provides complete, strongly-typed programmatic control over the Qumo Deploy control plane.

Installation

Install the package using your favorite package manager:

Client Initialization

Construct an instance of QumoClient by supplying your base URL and credentials:

Authentication Modes

The client supports three distinct authentication contexts:
  1. API Key (apiKey): Best for server-to-server microservices and background daemons. Sends the X-API-Key header.
  2. Bearer Token (token): Best for CI/CD runners, personal access tokens (PAT), or headless service tokens. Sends Authorization: Bearer <token>.
  3. Session Cookie + CSRF (csrfToken): Best for web console applications running in browsers where session cookies (qumo_session) are present. Pass a callback function returning the CSRF token:

First API Call: Fetching Identity & Projects