Skip to main content

Package Information

The Sendook Node.js SDK is available as an npm package:

Requirements

  • Node.js 16.x or higher
  • TypeScript 5.x (peer dependency)
  • Works with ESM and CommonJS

Installation

Install the SDK using your preferred package manager:
npm install @sendook/node

Module Support

The SDK supports both ESM and CommonJS:

ES Modules (ESM)

import SendookAPI from '@sendook/node';

const client = new SendookAPI('your_api_secret');

CommonJS

const SendookAPI = require('@sendook/node');

const client = new SendookAPI('your_api_secret');

TypeScript Support

The SDK is written in TypeScript and includes full type definitions. No additional @types package is needed.
import SendookAPI from '@sendook/node';
import type {
  ApiKeyMethods,
  DomainMethods,
  InboxMethods,
  WebhookMethods,
  CreateInboxParams,
  SendMessageParams
} from '@sendook/node';

Verify Installation

Create a test file to verify the installation:
test.ts
import SendookAPI from '@sendook/node';

const client = new SendookAPI('your_api_secret');

console.log('Sendook SDK installed successfully!');
Run the test:
node test.ts

Next Steps

Basic Usage

Learn how to initialize and use the SDK

API Reference

Explore all available methods and types

Build docs developers (and LLMs) love