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 ofQumoClient by supplying your base URL and credentials:
Authentication Modes
The client supports two authentication contexts:- Bearer Token (
token): For scripts and CI/CD. Pass a personal access token (qumo_pat_...) or an identity token. SendsAuthorization: Bearer <token>. - Session Cookie + CSRF (
csrfToken): For browser code served from the console’s own origin, where the session cookie is present.api.qumo-deploy.comignores cookies, so use an emptybaseUrl(same origin). Pass a callback returning the value of thequmo_csrf_tokencookie; the client sends it asX-CSRF-Tokenon 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 with401.