To make integration easier and more efficient, we provide an official SDK in TypeScript. This library simplifies API interactions by handling request formatting, authentication, and error handling for you, allowing you to focus on your application rather than managing API communication. The TypeScript SDK includes:
  • Simple setup and configuration
  • Pre-built methods for all available API endpoints
  • Automatic error handling with clear exception messages
  • Support for asynchronous requests and responses
While we currently offer SDK support in TypeScript only, we are actively working on expanding to other popular languages in the future. The TypeScript SDK is perfect for web applications or backend services built with Node.js, offering a streamlined and robust integration experience.

Typescript

import Nuntly from '@nuntly/sdk';

const client = new Nuntly({
  apiKey: process.env['NUNTLY_API_KEY'],
});

async function sendEmail() {
  const email = await client.emails.send({
    from: 'ray@info.tomlinson.ai',
    to: 'brian67@gmail.com',
    subject: 'Verify Your Email Address',
    text: 'Thank you for signing up! Please verify your email address...',
  });

  console.log(email.id);
}

sendEmail();