import Nuntly from '@nuntly/sdk';const client = new Nuntly({ apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted});const email = await client.emails.retrieve('em_01ka8k8s80gvx9604cn9am5st4');console.log(email.id);
Returns an email with its current delivery status and metadata.
GET
/
emails
/
{id}
JavaScript
import Nuntly from '@nuntly/sdk';const client = new Nuntly({ apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted});const email = await client.emails.retrieve('em_01ka8k8s80gvx9604cn9am5st4');console.log(email.id);