Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Node.js SDK

Installation

npm install @scalekit-sdk/node
2.6.3 TypeScript ESM Ready
Updated 3 days ago
Initialize the client
import { ScalekitClient } from '@scalekit-sdk/node';
const scalekit = new ScalekitClient(
process.env.SCALEKIT_ENVIRONMENT_URL,
process.env.SCALEKIT_CLIENT_ID,
process.env.SCALEKIT_CLIENT_SECRET
);
export default scalekit;

2.6.3

What's Changed

  • [SK-623] chore(deps): bump 5 low-risk Node deps by @dhawani in #189
  • [SK-625] chore(deps): bump axios from 1.13.5 to 1.17.0 by @dhawani in #190
  • [SK-626] chore(deps): bump @bufbuild stack (protobuf + buf + protoc-gen-es) by @dhawani in #192
  • [SK-628] chore(deps): bump dotenv from 16.6.1 to 17.4.2 by @dhawani in #193
  • [SK-630] chore(deps): bump jest + @types/jest from 29 to 30 by @dhawani in #194
  • [SK-632] chore(deps): bump @types/node from 20 to 25 by @dhawani in #195
  • [SK-633] chore(deps): bump jose from 5 to 6 by @dhawani in #196
  • [SK-643] chore(deps): bump typescript from 5 to 6 by @dhawani in #197
  • chore: release v2.6.3 by @srinivaskarre-sk in #198

New Contributors

Full Changelog: 2.6.2...2.6.3

2.6.0

What's Changed

Full Changelog: v2.5.0...2.6.0

v2.5.0

What's Changed

  • Adds support for Agent Auth And Connected Accounts.

Full Changelog: v2.4.0...v2.5.0

v2.3.0

What's Changed

  • API Tokens support added.

v2.1.9

What's Changed

New Contributors

Release Notes

Version 2.1.9

New Feature: Domain List API Type Filtering

Added optional type filtering to listDomains() method. Filter domains by ALLOWED_EMAIL_DOMAIN or ORGANIZATION_DOMAIN type.

API:

// List all domains (no filter)
await client.domain.listDomains('org_123456');

// Filter by type
await client.domain.listDomains('org_123456', {
  domainType: DomainType.ALLOWED_EMAIL_DOMAIN  // or 'ORGANIZATION_DOMAIN'
});

Highlights:

  • ✅ Fully backward compatible
  • ✅ Supports enum and string values
  • ✅ Comprehensive test coverage
  • ✅ No migration required

Changes

Added:

  • Type filtering parameter in listDomains()
  • resolveDomainType() helper method
  • Test coverage for all filtering scenarios

Improved:

  • Error messages for invalid domain types
  • Type safety for domain parameters

Migration

No migration needed - existing code works unchanged. The domainType parameter is optional.


Documentation: Domain API Docs

Full Changelog: v2.1.8...v2.1.9

v2.1.8

What's Changed

  • Bump js-yaml from 3.14.1 to 3.14.2 in #127
  • Add WebAuthn support in #130
  • Bump qs from 6.13.0 to 6.14.1 in #134

Full Changelog: v2.1.7...v2.1.8