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

The SDK is published on JSR. Every package manager installs it from there; the import is @qumo-deploy/sdk either way:

Client Initialization

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

Authentication Modes

The client supports two authentication contexts:
  1. Bearer Token (token): For scripts and CI/CD. Pass a personal access token (qumo_pat_...) or an identity token. Sends Authorization: Bearer <token>.
  2. Session Cookie + CSRF (csrfToken): For browser code served from the console’s own origin, where the session cookie is present. api.qumo-deploy.com ignores cookies, so use an empty baseUrl (same origin). Pass a callback returning the value of the qumo_csrf_token cookie; the client sends it as X-CSRF-Token on mutating requests:

First API Call: Fetching Organizations & Projects

This sample needs a personal access token. An identity token belongs to a project, not a user, and listing memberships refuses it with 401.