import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.events.list();
{
"object": "list",
"has_more": false,
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "user.created",
"schema": {
"plan": "string"
},
"created_at": "2025-10-01T12:00:00.000Z",
"updated_at": "2025-10-01T12:00:00.000Z"
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "user.upgraded",
"schema": null,
"created_at": "2025-09-15T08:30:00.000Z",
"updated_at": "2025-09-20T14:00:00.000Z"
}
]
}
Retrieve a list of events.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.events.list();
{
"object": "list",
"has_more": false,
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "user.created",
"schema": {
"plan": "string"
},
"created_at": "2025-10-01T12:00:00.000Z",
"updated_at": "2025-10-01T12:00:00.000Z"
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "user.upgraded",
"schema": null,
"created_at": "2025-09-15T08:30:00.000Z",
"updated_at": "2025-09-20T14:00:00.000Z"
}
]
}
npm install resend@6.10.0-preview-workflows.1
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.events.list();
{
"object": "list",
"has_more": false,
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "user.created",
"schema": {
"plan": "string"
},
"created_at": "2025-10-01T12:00:00.000Z",
"updated_at": "2025-10-01T12:00:00.000Z"
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "user.upgraded",
"schema": null,
"created_at": "2025-09-15T08:30:00.000Z",
"updated_at": "2025-09-20T14:00:00.000Z"
}
]
}
Was this page helpful?