import Nuntly from '@nuntly/sdk';const client = new Nuntly({ apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted});const domain = await client.domains.create({ name: 'name' });console.log(domain.id);
Add a domain to start configuring DNS records for sending or receiving emails.
POST
/
domains
JavaScript
Copy
import Nuntly from '@nuntly/sdk';const client = new Nuntly({ apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted});const domain = await client.domains.create({ name: 'name' });console.log(domain.id);