import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const emailListResponse of client.emails.list()) {
console.log(emailListResponse.id);
}
Returns sent emails ordered by submission date, newest first.
GET
/
emails
JavaScript
import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const emailListResponse of client.emails.list()) {
console.log(emailListResponse.id);
}