Recent searches

in

TypeScript SDK

Last modified: August 12th, 2026

On this page

The CloudCannon Software Development Kit (SDK) is a typed client for the CloudCannon API, with a sub-client for each resource and built-in pagination, sorting, and filtering. It handles authentication and request signing for you, so reach for it before calling the HTTP endpoints directly.

Installation#

Bash
Copied to clipboard
npm install @cloudcannon/sdk

The SDK requires Node.js 20 or later and runs server-side only. It signs requests using Node's crypto module, which is not available in a browser. Because an API Key can act on behalf of your entire Organization, keep it on your server, never expose it in client-side code, and never commit it to source control.

Usage#

Create a client with your API key, then call a resource:

TypeScript
Copied to clipboard
import CloudCannonClient from '@cloudcannon/sdk';

const client = new CloudCannonClient({ key: '<your-api-key>' });

const { items } = await client.orgs();

API Keys are scoped to an Organization. To create one, please read our documentation on creating an API key. This organization-scoped API Key is distinct from the personal Access Key used by the CloudCannon CLI; the SDK also accepts an Access Key via { userAccessKey }. For more detail on credentials and request signing, see the API reference.

Resources#

The SDK provides a typed sub-client for each CloudCannon resource, including Organizations, Sites, Builds, Backups, Syncs, Inboxes, and the DAM. List methods support pagination, sorting, and filtering. See the GitHub documentation for every resource and method.

Full documentation#

See the CloudCannon SDK on GitHub for the full documentation and the complete list of resources.

Open in a new tab