import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: 'My API Key',
});
// Automatically fetches more pages as needed.
for await (const emailListResponse of client.emails.list()) {
console.log(emailListResponse.id);
}
{
"data": [
{
"id": "em_01jnvnn9avq52k5mrhn1gab0ch",
"org_id": "org_01jh6jk82zjq9deye73h0mzcaq",
"created_at": "2025-03-08T20:03:04.155Z",
"from": "ray@info.tomlinson.ai",
"to": "carlo43@gmail.com",
"subject": "Welcome to Tomlinson AI!",
"status": "delivered",
"status_at": "2025-03-08T20:03:04.155Z",
"kind": "email",
"region": "eu-west-1"
},
{
"id": "em_01jnvnn9avq52k5mrhn1gab0ci",
"org_id": "org_01jh6jk82zjq9deye73h0mzcaq",
"created_at": "2025-03-08T20:03:04.155Z",
"from": "ray@info.tomlinson.ai",
"to": "pink42@yahoo.com",
"subject": "Welcome to Tomlinson AI!",
"status": "delivered",
"status_at": "2025-03-08T20:03:04.155Z",
"kind": "email",
"region": "eu-west-1"
}
],
"next_cursor": "<string>"
}
Return a list of your last emails
import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: 'My API Key',
});
// Automatically fetches more pages as needed.
for await (const emailListResponse of client.emails.list()) {
console.log(emailListResponse.id);
}
{
"data": [
{
"id": "em_01jnvnn9avq52k5mrhn1gab0ch",
"org_id": "org_01jh6jk82zjq9deye73h0mzcaq",
"created_at": "2025-03-08T20:03:04.155Z",
"from": "ray@info.tomlinson.ai",
"to": "carlo43@gmail.com",
"subject": "Welcome to Tomlinson AI!",
"status": "delivered",
"status_at": "2025-03-08T20:03:04.155Z",
"kind": "email",
"region": "eu-west-1"
},
{
"id": "em_01jnvnn9avq52k5mrhn1gab0ci",
"org_id": "org_01jh6jk82zjq9deye73h0mzcaq",
"created_at": "2025-03-08T20:03:04.155Z",
"from": "ray@info.tomlinson.ai",
"to": "pink42@yahoo.com",
"subject": "Welcome to Tomlinson AI!",
"status": "delivered",
"status_at": "2025-03-08T20:03:04.155Z",
"kind": "email",
"region": "eu-west-1"
}
],
"next_cursor": "<string>"
}
Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>
The number of emails to return
1 <= x <= 30
The cursor to use for pagination
A successful response
The response is of type object
.